/* Tab Component Styles -*/
.godam-folder-tab {
	margin: 0;
	padding: 0;

	.components-panel__icon {
		fill: #1c1c1c;
		margin: 0 0.375rem 0 0;
		width: 24px;
		height: 24px;
	}

	&:first-child .components-panel__icon {
		fill: #F79009;
	}

}

.godam-folder-tab__empty-icon svg {
	width: 48px;
	height: 48px;
	color: #646970;
}

.godam-folder-tab-item__icon svg {
	width: 100%;
	height: 100%;
	color: #2271b1;
}

.godam-folder-tab-item__actions button svg {
	width: 16px;
	height: 16px;
}

/* Panel Styling */
.godam-folder-tab-panel {
	border: none;
	box-shadow: none;
	background: transparent;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;

	.folder-tab__count {
		margin-left: auto;
		margin-right: 0;
		font-size: 0.75rem;
		font-weight: 600;
		color: #1c1c1c;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 0.5rem;
		height: 1.5rem;
		min-width: 1.5rem;
		border-radius: 0.5rem;
		background-color: #F5F5F5;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	}
}

.godam-folder-tab-panel .components-panel__body {
	background: #fff;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border: none;
	padding: 0;

	.components-panel__body-title {
		background: #fff;

		.components-button {
			padding: 1rem 0.25rem;

			.components-panel__arrow {
				position: relative;
				transform: unset;
				right: unset;
				top: unset;
				vertical-align: middle;
			}
		}
	}

	&.is-opened {

		.components-panel__body-title {
			margin: 0;
		}
	}
}

.godam-folder-tab-panel .components-panel__body-toggle {
	color: #1c1c1c;
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	align-items: center;

	&:hover, &:active {
		color: #1c1c1c;
		background-color: #F5F5F5;
	}
}

.godam-folder-tab__list {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;

	.tree-item {
		padding-left: 0.5rem;

		&__count {
			margin-left: auto;
		}
	}
}

.godam-folder-tab-panel .components-panel__body-content {
	padding: 0;
}

/* Loading State */
.godam-folder-tab__loading {
	padding: 32px 16px;
	text-align: center;
}

.godam-folder-tab__loading .components-spinner {
	margin-bottom: 12px;
}

.godam-folder-tab__loading p {
	margin: 0;
	color: #646970;
	font-size: 14px;
}

/* Empty State */
.godam-folder-tab__empty-state {
	padding: 32px 16px;
	text-align: center;
}

.godam-folder-tab__empty-icon {
	margin-bottom: 16px;
	opacity: 0.4;
}

.godam-folder-tab__empty-state h4 {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.godam-folder-tab__empty-state p {
	margin: 0;
	color: #646970;
	font-size: 14px;
	line-height: 1.5;
}

/* Notice */
.godam-folder-tab__notice {
	margin: 0 16px 16px 16px;
}

.godam-folder-tab-item {
	padding: 12px 16px;
	border-bottom: 1px solid #dcdcde;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 12px;
}

.godam-folder-tab-item:last-child {
	border-bottom: none;
}

.godam-folder-tab-item:hover {
	background-color: #f6f7f7;
}

/* Bookmark Icon */
.godam-folder-tab-item__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

/* Bookmark Content */
.godam-folder-tab-item__content {
	flex: 1;
	min-width: 0;
}

.godam-folder-tab-item__name {
	margin: 0 0 4px 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.godam-folder-tab-item__path {
	margin: 0;
	font-size: 12px;
	color: #646970;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Bookmark Actions */
.godam-folder-tab-item__actions {
	flex-shrink: 0;
	opacity: 0;
	display: flex;
	gap: 4px;
}

.godam-folder-tab-item:hover .godam-folder-tab-item__actions {
	opacity: 1;
}

.godam-folder-tab-item__actions button {
	padding: 4px;
	border: 1px solid #8c8f94;
	background: #f6f7f7;
	cursor: pointer;
	color: #50575e;
}

.godam-folder-tab-item__actions button:hover {
	background: #fff;
	border-color: #8c8f94;
	color: #1d2327;
}

.godam-folder-tab-item__actions button.is-destructive:hover {
	background: #d63638;
	border-color: #d63638;
	color: #fff;
}
