.modern-folder {
	--folder-surface: #f4f8ff;
	--folder-surface-strong: #e5eefc;
	--folder-tab: #dbe7fb;
	--folder-tab-hover: #cdddf9;
	--folder-tab-active: #f4f8ff;
	--folder-border: #bfd0f2;
	--folder-accent: #1c46b4;
	--folder-text: #24324a;
	--folder-shadow: 0 14px 34px rgba(28, 70, 180, 0.12);
	--folder-shadow-soft: 0 8px 20px rgba(28, 70, 180, 0.08);
}

.folder-entrance {
	animation: scaleIn 0.6s ease-out 0.1s both;
}

.modern-folder {
	position: relative;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	transform-origin: center bottom;
}

.folder-tabs {
	display: flex;
	position: relative;
	margin-bottom: -1px;
	gap: 5px;
	flex-wrap: nowrap;
	z-index: 2;
}

.folder-tab {
	padding: 15px 70px 15px 30px;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	border-top-left-radius: 12px;
	clip-path: polygon(0 0, calc(100% - 20%) 0, 100% 100%, 100% 100%, 0 100%);
	overflow: hidden;
	backdrop-filter: blur(10px);
	border: 1px solid var(--folder-border) !important;
	border-bottom: none !important;
	outline: none !important;
	box-shadow: var(--folder-shadow-soft) !important;
	background: linear-gradient(180deg, #edf4ff 0%, var(--folder-tab) 100%);
	color: var(--folder-text);
	font-weight: 600;
	font-size: 14px;
	opacity: 0.94;
	margin-top: 4px;
	font-family: "Inter", "Open Sans", sans-serif;
}

.folder-tab:nth-child(n + 2) {
	margin-left: -30px;
}

.folder-tab:hover {
	opacity: 1;
	background: linear-gradient(180deg, #e3eeff 0%, var(--folder-tab-hover) 100%);
	transform: translateY(-2px);
	color: var(--folder-accent);
}

.folder-tab:hover .tab-text {
	transform: scale(1.02);
}

.folder-tab.active {
	background: linear-gradient(180deg, #ffffff 0%, var(--folder-tab-active) 82%);
	border-color: var(--folder-border);
	box-shadow: 0 12px 28px rgba(28, 70, 180, 0.14);
	margin-top: 0;
	opacity: 1;
	color: var(--folder-accent);
}

.tab-text {
	display: block;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-weight: 700;
	font-size: large;
}

.mobile-text {
	display: none;
}

.folder-body {
	position: relative;
	overflow: hidden;
	transition: all 0.4s ease;
	padding: 20px;
	background: linear-gradient(180deg, #ffffff 0%, var(--folder-surface) 100%) !important;
	border: 1px solid var(--folder-border);
	border-top: none;
	box-shadow: var(--folder-shadow);
}

.folder-content {
	position: relative;
	overflow: hidden;
}

.content-section {
	width: 100%;
	opacity: 1;
	transform: translateX(0) scale(1);
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-section.transitioning {
	opacity: 0;
	transform: translateX(30px) scale(0.98);
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@media (max-width: 768px) {
	.folder-tab {
		padding: 12px 40px 12px 20px;
		font-size: 12px;
	}

	.folder-tab:nth-child(n + 2) {
		margin-left: -20px;
	}

	.desktop-text {
		display: none;
	}

	.mobile-text {
		display: block;
	}
}

@media (max-width: 480px) {
	.folder-tab {
		padding: 10px 30px 10px 15px;
		font-size: 11px;
	}

	.folder-tab:nth-child(n + 2) {
		margin-left: -15px;
	}

	.folder-tabs {
		gap: 2px;
	}
}
