/* ============================================
   ПЕРЕМЕННЫЕ
   ============================================ */
:root {
	--primary-accent: #FFDCCB;
	--site-bg: #F3B9CB;
	--page-bg: #FDF0F9;
	--shadow: #000000;
	--card-bg: #F3B9CB;
	--text-light: #B5A2D4;
	--text-dark: #000000;
	--gradient-start: #cfb3a5;
	--gradient-end: #e6c6b6;
	--modal-overlay: rgba(0, 0, 0, 0.75);
	--material-border: rgba(255, 255, 255, 0.05);
	--material-hover: rgba(255, 255, 255, 0.1);
	--green: #1E5945;
	--red: #EE204D;
	--purple: #9966CC;
}

/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */
body {
	background-color: var(--site-bg);
	font-family: 'Roboto', 'Courier New', monospace;
	margin: 0;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   ФОНОВЫЕ ЭЛЕМЕНТЫ
   ============================================ */
body::after {
	content: '';
	position: fixed;
	top: -20px;
	left: -20px;
	width: calc(100% + 40px);
	height: calc(100% + 40px);
	background-image: url("/media/Гуманитарий_фон.png");
	background-size: contain;
	background-attachment: fixed;
	background-position: center;
	pointer-events: none;
	z-index: -2;
	opacity: 0.75;
}

body::before {
	background-color: var(--page-bg);
	content: '';
	height: 100vh;
	left: 50%;
	position: fixed;
	top: 0;
	transform: translateX(-50%);
	width: min(1200px, 75%);
	min-width: 75%;
	box-shadow: 0 0 25px var(--shadow);
	z-index: -1;
	opacity: 1;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */

@keyframes shine {
	0% {
		filter: brightness(1) drop-shadow(0 0 0px var(--primary-accent));
	}
	50% {
		filter: brightness(1.025) drop-shadow(0 0 5px var(--primary-accent));
	}
	100% {
		filter: brightness(1) drop-shadow(0 0 0px var(--primary-accent));
	}
}

@keyframes gentlePulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.03); }
	100% { transform: scale(1); }
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideIn {
	from { transform: translateY(-50px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
	from { transform: scale(0.8); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

@keyframes burgerMenuSlide {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* ============================================
   ТИПОГРАФИКА
   ============================================ */
h1 {
	color: var(--text-dark);
	display: block;
	font-size: clamp(25px, 5vw, 35px);
	font-weight: 700;
	line-height: 1.5;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: clamp(20px, 5vw, 25px);
	position: relative;
	text-align: center;
	white-space: normal;
	width: fit-content;
	max-width: 90%;
}

/* ============================================
   НАВИГАЦИЯ
   ============================================ */
.nav-menu {
	background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
	padding: clamp(10px, 2vw, 25px) 0;
	display: flex;
	height: 50px;
	width: 100%;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	box-shadow: 0 0 10px var(--shadow);
	z-index: 1000;
	transition: all 0.3s ease;
}

.nav-list {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: clamp(15px, 5vw, 50px);
	list-style: none;
	margin: 0;
	padding: 0 clamp(10px, 5vw, 20px);
	flex-wrap: wrap;
}

.nav-item {
	margin: 0;
}

.nav-link {
	color: var(--green);
	text-decoration: none;
	font-size: clamp(15px, 1vw, 25px);
	font-weight: 700;
	padding: clamp(5px, 1vw, 10px) clamp(8px, 1.5vw, 15px);
	border-radius: clamp(5px, 1vw, 10px);
	transition: all 0.25s ease;
	display: inline-block;
	white-space: nowrap;
}

.nav-link:hover {
	color: var(--text-dark);
	text-shadow: 0 0 1px var(--text-dark);
	transform: translateY(-2px);
}

.nav-link.active {
	color: var(--text-dark);
	text-shadow: 0 0 1px var(--text-dark);
	cursor: default;
}

.page-nav {
    background: var(--primary-accent);
    margin: 20px auto 40px auto;
    max-width: 90%;
    width: fit-content;
    padding: 10px 20px;
    backdrop-filter: blur(8px);
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.page-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-nav-link {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.page-nav-link:hover {
    border-bottom-color: var(--text-dark);
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .page-nav {
        padding: 8px 12px;
    }
    .page-nav-link {
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

.page-nav-list li:not(:last-child)::after {
    content: "|";
    margin-left: 15px;
    color: var(--green);
    font-weight: 300;
}

@media (max-width: 768px) {
    .page-nav-list li:not(:last-child)::after {
        margin-left: 10px;
        content: none;
    }
}

/* ============================================
   БУРГЕР-МЕНЮ (MOBILE)
   ============================================ */
.burger-btn {
	display: none;
	position: fixed;
	top: 10px;
	right: 25px;
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	z-index: 1002;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	box-shadow: 0 0 10px var(--shadow);
	transition: all 0.25s ease;
}

.burger-btn:hover {
	transform: scale(1.05);
}

.burger-btn span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--text-dark);
	border-radius: 3px;
	transition: all 0.25s ease;
}

.burger-btn.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 6px);
}

.burger-btn.active span:nth-child(2) {
	opacity: 0;
}

.burger-btn.active span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-nav {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	width: 250px;
	height: 100vh;
	background: linear-gradient(135deg, color-mix(in srgb, var(--gradient-start) 85%, transparent) 0%, color-mix(in srgb, var(--gradient-end) 85%, transparent) 100%);
	backdrop-filter: blur(10px);
	z-index: 1001;
	padding: 100px 25px 30px;
	box-shadow: -5px 0 20px var(--shadow);
	animation: burgerMenuSlide 0.25s ease;
	overflow-y: auto;
}

.mobile-nav.show {
	display: block;
}

.mobile-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-nav-item {
	margin-bottom: 15px;
}

.mobile-nav-link {
	color: var(--green);
	text-decoration: none;
	font-size: 20px;
	font-weight: 700;
	padding: 10px 15px;
	display: block;
	border-radius: 8px;
	transition: all 0.25s ease;
	text-align: right;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
	color: var(--text-dark);
}

.mobile-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: color-mix(in srgb, var(--shadow), transparent 50%);
	z-index: 1000;
}

.mobile-overlay.show {
	display: block;
}

/* ============================================
   АВТОРИЗАЦИЯ
   ============================================ */
.auth-buttons {
	height: 50px;
	position: fixed;
	top: 25px;
	right: 25px;
	display: flex;
	gap: 10px;
	z-index: 1000;
}

.auth-btn {
	padding: 10px 15px;
	background: var(--card-bg);
	color: var(--text-light);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	transition: all 0.25s ease;
	box-shadow: 0 0 10px var(--shadow);
}

.auth-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 0 10px var(--shadow);
}

.user-menu {
	height: 40px;
	position: fixed;
	top: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
	background: linear-gradient(135deg, var(--card-bg) 0%, var(--site-bg) 100%);
	padding: 10px 20px;
	border-radius: 10px;
	box-shadow: 0 0 10px var(--shadow);
	z-index: 1000;
}

.profile-btn, .logout-btn {
	padding: 5px 10px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	transition: all 0.25s ease;
}

.profile-btn {
	background: none;
	color: white;
}

.profile-btn:hover {
	transform: scale(1.05);
	text-shadow: 0 0 10px var(--text-light);
}

.logout-btn {
	background: var(--red);
	color: white;
}

.logout-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 0 10px var(--red);
}

.auth-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
	border-bottom: 2px solid var(--material-border);
}

.tab-btn {
	padding: 10px 20px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: var(--text-light);
	transition: all 0.3s ease;
	position: relative;
}

.tab-btn.active {
	color: var(--primary-accent);
}

.tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--primary-accent);
	border-radius: 2px;
}

.tab-btn:hover:not(.active) {
	color: var(--text-light);
}

.auth-form {
	display: none;
}

.auth-form.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

.input-group {
	margin-bottom: 20px;
}

.input-group input, .input-group select {
	width: 100%;
	padding: 10px 15px;
	background: var(--material-border);
	border: 1px solid var(--primary-accent);
	border-radius: 10px;
	font-size: 15px;
	color: var(--text-light);
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.input-group input:focus, .input-group select:focus {
	outline: none;
	border-color: var(--primary-accent);
	box-shadow: 0 0 5px var(--primary-accent);
}

.input-group input::placeholder {
	color: var(--text-light);
}

.send-btn {
	width: 100%;
	padding: 12px;
	background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
	color: var(--text-light);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s ease;
	margin-top: 10px;
}

.send-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 0 10px var(--shadow);
}

.cancel-btn {
	width: 100%;
	padding: 12px;
	background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
	color: var(--text-light);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s ease;
	margin-top: 10px;
}

.cancel-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 10px var(--shadow);
}

.profile-field {
	margin-bottom: 20px;
	padding: 12px 15px;
	background: var(--material-border);
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.profile-field label {
	font-weight: bold;
	min-width: 100px;
	color: var(--primary-accent);
}

.profile-field span {
	flex: 1;
	color: var(--text-light);
	word-break: break-word;
}

.edit-btn {
	padding: 6px 12px;
	background: var(--card-bg);
	color: var(--text-light);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.edit-btn:hover {
	transform: scale(1.05);
}

/* ============================================
   ЛОГОТИП
   ============================================ */
.logo-container {
	text-align: center;
	margin-bottom: 50px;
}

.logo-image {
	width: 50%;
	height: auto;
	display: inline-block;
}

/* ============================================
   ОСНОВНОЙ КОНТЕНТ
   ============================================ */
.site-content {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	padding: 0 clamp(15px, 5vw, 50px);
	position: relative;
	width: min(1200px, 75%);
	min-width: 75%;
	padding-top: 150px;
	z-index: 0;
}

/* ============================================
   КОНТЕЙНЕР
   ============================================ */
.container {
	background-color: rgba(0, 0, 0, 0.05);
	overflow: hidden;
	position: relative;
	box-shadow: inset 0 0 10px var(--shadow);
	padding: 0 clamp(15px, 5vw, 50px);
	align-items: center;
}

/* ============================================
   СЕТКА КАРТОЧЕК
   ============================================ */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(15px, 5vw, 50px);
	margin-bottom: clamp(15px, 5vw, 50px);
}

.grid-item {
	background-color: var(--card-bg);
	border-radius: clamp(5px, 1vw, 10px);
	overflow: hidden;
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	cursor: pointer;
	box-shadow: 0 0 10px var(--shadow);
	display: flex;
	flex-direction: column;
}

.grid-item:hover {
	transform: scale(1.05);
	box-shadow: 0 0 10px var(--shadow);
}

.grid-top {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: clamp(15px, 5vw, 25px);
	padding: clamp(15px, 5vw, 25px);
	position: relative;
	flex-wrap: wrap;
}

.grid-item .grid-top {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: clamp(5px, 5vw, 10px);
}

.grid-top img {
	max-width: 90%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	animation: shine 5s linear infinite;
}

.grid-image-container {
	position: relative;
	overflow: hidden;
	border-radius: clamp(5px, 1vw, 10px);
	flex-shrink: 0;
	width: clamp(100px, 15vw, 300px);
	height: clamp(100px, 15vw, 300px);
}

.grid-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	margin: auto;
	transition: transform 0.25s ease;
	animation: shine 5s linear infinite;
}

.grid-item:hover .grid-image {
	animation: gentlePulse 1s ease-in-out infinite, shine 5s linear infinite;
}

.grid-header {
	flex: 1;
	min-width: 150px;
}

.grid-header h2 {
	color: var(--text-dark);
	font-size: clamp(20px, 5vw, 50px);
	margin-top: -30px;
	font-weight: 700;
	text-align: left;
	white-space: normal;
	transition: text-shadow 0.25s ease;
	margin-bottom: 0;
}

.grid-header h3 {
	color: var(--text-dark);
	font-size: clamp(20px, 5vw, 30px);
	font-weight: 700;
	text-align: center;
	text-shadow: 0 0 10px var(--primary-accent);
	white-space: normal;
	transition: text-shadow 0.25s ease;
	margin-top: 0;
	margin-bottom: 0;
}

.grid-content {
	padding: 0 clamp(15px, 5vw, 25px) clamp(15px, 5vw, 25px) clamp(15px, 5vw, 50px);
	flex: 1;
}

.grid-content p, .grid-content li {
	color: var(--text-dark);
	font-size: 20px;
	font-weight: 700;
}

.grid-item .grid-header:has(h3) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.grid-item .grid-header h3 {
    text-align: center;
    margin: 0;
    width: 100%;
}

/* ============================================
   МАТЕРИАЛЫ
   ============================================ */
.materials-list {
	display: flex;
	flex-direction: column;
	gap: clamp(15px, 5vw, 25px);
}

.material-item {
	background: var(--material-border);
	border-left: clamp(5px, 0.5vw, 5px) solid var(--primary-accent);
	padding: clamp(15px, 5vw, 25px);
	transition: background 0.25s ease;
}

.material-item:hover {
	background: var(--material-hover);
}

.material-title {
	color: var(--primary-accent);
	font-size: clamp(15px, 1.5vw, 20px);
	font-weight: 700;
	margin: 0;
	text-decoration: none;
	display: inline-block;
}

.material-title:hover {
	text-decoration: underline;
}

/* ============================================
   МОДАЛЬНЫЕ ОКНА
   ============================================ */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--modal-overlay);
	z-index: 1000;
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.25s ease;
}

.modal.show {
	display: flex;
}

.modal-content {
	background: linear-gradient(135deg, var(--card-bg) 0%, var(--site-bg) 100%);
	border-radius: clamp(5px, 1.5vw, 10px);
	max-width: 95%;
	width: min(800px, 95%);
	position: relative;
	box-shadow: 0 0 10px var(--shadow);
	animation: slideIn 0.25s ease;
	margin: 20px;
	max-height: 90vh;
	overflow-y: auto;
}

.modal-header {
	background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
	padding: clamp(15px, 5vw, 25px);
	border-radius: clamp(5px, 1.5vw, 10px) clamp(5px, 1.5vw, 10px) 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	color: var(--text-light);
	text-shadow: 0 0 1px var(--shadow);
	margin: 0;
	font-size: clamp(20px, 5vw, 50px);
	white-space: normal;
}

.modal-close {
	background: none;
	border: none;
	color: var(--text-light);
	font-size: clamp(25px, 5vw, 50px);
	cursor: pointer;
	padding: 0;
	width: clamp(25px, 5vw, 50px);
	height: clamp(25px, 5vw, 50px);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s ease;
	line-height: 1;
}

.modal-close:hover {
	transform: scale(1.1);
	color: black;
}

.modal-body {
	padding: clamp(15px, 5vw, 25px);
	color: var(--text-light);
}

.modal-image {
	width: 90%;
	height: auto;
	border-radius: clamp(5px, 5vw, 10px);
	margin-bottom: clamp(15px, 5vw, 20px);
	margin: 0 auto clamp(15px, 5vw, 20px) auto;
	display: block;
}

.modal-description {
	font-size: clamp(20px, 5vw, 25px);
	font-weight: 700;
	line-height: 3;
	margin-bottom: clamp(15px, 5vw, 25px);
	color: var(--primary-accent);
}

.modal-materials {
	margin-top: clamp(15px, 5vw, 25px);
}

.modal-materials-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.modal-materials-list li {
	margin-bottom: clamp(5px, 1.5vw, 10px);
	padding: clamp(5px, 1.5vw, 10px);
	background: var(--material-border);
	border-left: clamp(5px, 0.5vw, 10px) solid var(--primary-accent);
	transition: background 0.25s ease;
}

.modal-materials-list li:hover {
	background: var(--material-hover);
}

.modal-materials-list a {
	color: var(--primary-accent);
	text-decoration: none;
	font-size: clamp(15px, 1.5vw, 20px);
	display: block;
	word-break: break-word;
}

.modal-materials-list a:hover {
	text-decoration: underline;
}

/* ============================================
   МАСШТАБИРУЕМОЕ ИЗОБРАЖЕНИЕ
   ============================================ */
.zoomable-image {
	width: 100%;
	box-shadow: 0 0 10px var(--shadow);
	cursor: pointer;
	transition: transform 0.3s ease;
}

.zoomable-image:hover {
	transform: scale(1.01);
}

.image-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--modal-overlay);
	z-index: 2000;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	animation: fadeIn 0.25s ease;
}

.image-modal.show {
	display: flex;
}

.image-modal-content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	animation: zoomIn 0.25s ease;
}

.image-modal-content img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	box-shadow: 0 0 20px var(--shadow);
	background-color: var(--page-bg);
}

.image-modal-close {
	position: absolute;
	top: -50px;
	right: 0;
	background: none;
	border: none;
	color: var(--text-light);
	font-size: 50px;
	cursor: pointer;
	padding: 0;
	transition: transform 0.25s ease;
	z-index: 2001;
}

.image-modal-close:hover {
	transform: scale(1.1);
	color: var(--primary-accent);
}

/* ============================================
   АДАПТАЦИЯ
   ============================================ */
@media (min-width: 1280px) {
	.mobile-nav,
	.burger-btn,
	.mobile-overlay {
		display: none !important;
	}
}

@media (max-width: 1279px) {
    .nav-menu {
        display: none;
    }
    
    .burger-btn {
        display: flex;
    }
    
    body::before {
        min-width: 95%;
    }

    .site-content {
        min-width: 95%;
        padding-top: 70px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
    
    .grid-top {
        flex-direction: row;
        text-align: center;
        flex-wrap: wrap;
    }
    
    .grid-header h2 {
        text-align: center;
        font-size: 50px;
    }
    
    .grid-image-container {
        margin: 0 auto;
        width: 250px;
        height: 250px;
    }
    
    .modal-content {
        width: 95%;
        margin: 15px;
    }
    
    .image-modal-close {
        top: -30px;
        font-size: 30px;
    }
    
    .image-modal-content {
        max-width: 95vw;
    }
    
    .logo-image {
        width: 70%;
    }
    
    .auth-buttons {
        top: 10px;
        right: 80px;
    }
    
    .user-menu {
        top: 10px;
        right: 80px;
        padding: 5px 10px;
        gap: 10px;
    }
    
    .username {
        font-size: 15px;
    }
    
    .profile-btn, .logout-btn {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .profile-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .profile-field label {
        min-width: auto;
    }
    
    .profile-field span {
        width: 100%;
    }
}

/* ============================================
   СТИЛИ ДЛЯ ФОРМУЛ В МОДАЛЬНОМ ОКНЕ
   ============================================ */
.formulas-section {
    margin-bottom: 20px;
}

.formulas-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formula-card-item {
    background: var(--material-border);
    border-left: 3px solid var(--primary-accent);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-bottom: 20px;
}

.formula-name {
    color: var(--text-light);
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
    padding: 0 0 5px 0;
}

.formula-latex {
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow-x: auto;
}

.formula-latex .MathJax {
    font-size: 1.1em;
    color: var(--text-light);
}

.formula-description {
    color: var(--text-light);
    font-size: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--material-border);
    opacity: 0.9;
}

/* ============================================
   СТИЛИ ДЛЯ ВКЛАДОК
   ============================================ */
.sections-container {
    margin-bottom: 20px;
}

.sections-description {
    margin-bottom: 20px;
    font-size: 25px;
	font-weight: 700;
    color: var(--text-light);
}

.sections-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
	background-color: rgba(0, 0, 0, 0.25);
    border-top: 2px solid rgba(255, 255, 255, 0.25);
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
	box-shadow: inset 0 0 10px var(--shadow);
	padding: 0 clamp(5px, 5vw, 10px);
    flex-wrap: wrap;
}

.section-tab {
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.25s ease;
    position: relative;
    border-radius: 0;
    padding: 10px 0;
    margin: 0;
    box-shadow: none !important;
    text-transform: none;
    letter-spacing: normal;
    line-height: normal;
}

.section-tab:hover {
    color: var(--primary-accent);
    background: none !important;
    transform: none;
    box-shadow: none !important;
}

.section-tab.active {
    color: var(--primary-accent);
}

.section-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-accent);
    border-radius: 2px;
}

.section-tab:hover::before,
.section-tab:hover::after,
.section-tab:focus,
.section-tab:active {
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ============================================
   СТРАНИЦЫ ОШИБОК
   ============================================ */
.error-container {
	background: linear-gradient(135deg, var(--site-bg) 0%, var(--page-bg) 100%);
	border-radius: 20px;
	padding: 50px;
	max-width: 600px;
	width: 90%;
	text-align: center;
	margin: 50px auto;
	box-shadow: 0 0 10px var(--shadow);
}

.error-code {
	font-size: 120px;
	font-weight: 700;
	color: var(--primary-accent);
	text-shadow: 0 0 10px var(--primary-accent);
	margin-bottom: 20px;
	line-height: 1;
}

.error-title {
	font-size: 32px;
	color: var(--text-light);
	margin-bottom: 20px;
}

.error-description {
	font-size: 70px;
	margin-bottom: 20px;
}

.error-message {
	font-size: 18px;
	color: var(--text-light);
	margin-bottom: 30px;
	line-height: 1.6;
}

.home-link {
	display: inline-block;
	background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
	color: var(--text-light);
	text-decoration: none;
	padding: 12px 30px;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.home-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 10px var(--shadow);
}

@media (max-width: 768px) {
	.error-code {
		font-size: 80px;
	}
	
	.error-title {
		font-size: 24px;
	}
	
	.error-description {
		font-size: 50px;
	}
	
	.error-message {
		font-size: 16px;
	}
	
	.error-container {
		padding: 30px;
	}
}

/* ============================================
   ЧАТ
   ============================================ */
.chat-container {
	padding: 0 0 clamp(15px, 5vw, 50px) 0 0;
	height: 75vh;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 550px;
	box-shadow: 0 0 10px var(--shadow);
}

.chat-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
}

.chat-header h2 span {
    font-size: 1.8rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--site-bg);
}

.message {
    display: flex;
    gap: 15px;
    animation: fadeInUp 0.3s ease;
    max-width: 85%;
}

.message-avatar {
    flex-shrink: 0;
}

.avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 10px var(--primary-accent);
}

.avatar.teacher {
    width: 48px;
    height: 48px;
    background: var(--purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 10px var(--purple);
}

.message-content {
    background: linear-gradient(135deg, var(--gradient-start), var(--card-bg));
    flex: 1;
    border-radius: 10px;
    padding: 15px 20px;
    transition: all 0.2s ease;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.message-name {
    font-weight: bold;
    font-size: 1rem;
}

.message-name.student {
    color: var(--primary-accent);
}

.message-name.teacher {
    color: var(--purple);
}

.message-name.jaseon {
    color: var(--primary-accent);
}

.message-badge {
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 500;
}

.badge-role {
    background: color-mix(in srgb, var(--primary-accent), transparent 85%);
    color: var(--primary-accent);
}

.badge-role.teacher {
    background: color-mix(in srgb, var(--purple), transparent 85%);
    color: var(--purple);
}

.badge-role.jaseon {
    background: color-mix(in srgb, #FFD700, transparent 85%);
    color: #FFD700;
}

.badge-grade {
    background: color-mix(in srgb, var(--primary-accent), transparent 85%);
    color: var(--primary-accent);
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-left: auto;
}

.message-text {
    color: var(--text-light);
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
    margin-top: 10px;
    font-size: 0.95rem;
}

.message-text a {
    color: var(--primary-accent);
    text-decoration: none;
}

.message-text a:hover {
    text-decoration: underline;
}

.delete-btn {
    background: color-mix(in srgb, var(--red), transparent 85%);
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 0.7rem;
    padding: 5px 15px;
    border-radius: 10px;
    margin-top: 10px;
    transition: all 0.2s;
    display: inline-block;
}

.delete-btn:hover {
    background: color-mix(in srgb, var(--red), transparent 50%);
    transform: scale(1.02);
}

.message.own-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.own-message .message-content {
    background: linear-gradient(135deg, var(--card-bg), var(--gradient-start));
}

.message.own-message .message-name {
    color: var(--text-light);
}

.message.own-message .delete-btn {
    background: color-mix(in srgb, var(--red), transparent 85%);
}

.message.own-message .delete-btn:hover {
    background: color-mix(in srgb, var(--red), transparent 50%);
}

.chat-input-area {
    padding: 20px 25px;
    background: var(--card-bg);
}

.chat-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--primary-accent);
    background: var(--card-bg);
    border-radius: 10px;
    padding: 10px 25px;
    color: var(--text-light);
    font-size: 0.95rem;
    resize: none;
    font-family: inherit;
    max-height: 120px;
    transition: all 0.2s;
}

.chat-input:focus {
    outline: none;
    box-shadow: 0 0 10px var(--primary-accent);
    border-color: var(--primary-accent);
}

.chat-input::placeholder {
    color: var(--text-light);
}

.chat-send-btn {
    background: var(--primary-accent);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.chat-send-btn:hover {
    box-shadow: 0 0 10px var(--primary-accent);
}

.empty-chat {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.empty-chat::before {
    content: "💬";
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 150px);
        border-radius: 10px;
    }
    
    .chat-header {
        padding: 10px 25px;
    }
    
    .chat-header h2 {
        font-size: 1.2rem;
    }
    
    .chat-messages {
        padding: 15px;
        gap: 15px;
    }
    
    .message {
        max-width: 95%;
        gap: 10px;
    }
    
    .avatar {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    .message-content {
        padding: 10px 15px;
    }
    
    .message-header {
        gap: 6px;
    }
    
    .message-name {
        font-size: 0.85rem;
    }
    
    .message-badge {
        font-size: 0.6rem;
        padding: 5px 10px;
    }
    
    .message-time {
        font-size: 0.6rem;
    }
    
    .message-text {
        font-size: 0.85rem;
    }
    
    .chat-input-area {
        padding: 15px 15px;
    }
    
    .chat-input {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .chat-send-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .message-header {
        flex-wrap: wrap;
    }
    
    .message-time {
        margin-left: 0;
        width: 100%;
        margin-top: 5px;
    }
}

.access-denied {
	background: linear-gradient(135deg, var(--site-bg) 0%, var(--page-bg) 100%);
	border-radius: 20px;
	padding: 50px;
	max-width: 600px;
	width: 90%;
	text-align: center;
	margin: 50px auto;
	box-shadow: 0 0 10px var(--shadow);
}

.access-denied .icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.access-denied h1 {
    color: var(--red);
	text-shadow: 0 0 5px var(--red);
    margin-bottom: 20px;
    font-size: 2rem;
}

.access-denied p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.access-denied .back-btn {
	display: inline-block;
	background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
	color: var(--text-light);
	text-decoration: none;
	padding: 15px 30px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.access-denied .back-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 10px var(--shadow);
}

.input-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--material-border);
    border: 1px solid var(--primary-accent);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.input-group select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 5px var(--primary-accent);
}

.input-group select option {
    background: var(--card-bg);
    color: var(--text-light);
    padding: 10px;
}

.input-group select option:hover {
    background: var(--primary-accent);
    color: white;
}

.input-group select:focus option:checked {
    background: var(--primary-accent);
    color: white;
}

/* ============================================
   СТРАНИЦА ВИДЕО
   ============================================ */
.video-container {
    width: 100%;
    margin: 0 auto;
    margin-bottom: clamp(15px, 5vw, 50px);
}

.video-grid {
    display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(15px, 5vw, 50px);
	margin-bottom: clamp(15px, 5vw, 50px);
}

.video-card {
    background: var(--card-bg);
    border-radius: 10px;
    border: 5px solid var(--card-bg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 10px var(--shadow);
}

.video-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--shadow);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--card-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: color-mix(in srgb, var(--primary-accent), transparent 25%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.3s ease;
	z-index: 2;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-info {
    padding: 15px 20px;
}

.video-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-description {
    color: var(--text-dark);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.video-duration {
    display: inline-block;
    background: var(--card-bg);
    color: var(--text-dark);
    font-size: 0.7rem;
    border-radius: 5px;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.video-modal.show {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px var(--shadow);
}

.video-modal-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-header h3 {
    color: var(--text-light);
    margin: 0;
    font-size: 1.2rem;
}

.video-modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.video-modal-close:hover {
    transform: scale(1.1);
    color: black;
}

.video-iframe-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.empty-videos {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    color: var(--text-light);
}

.empty-videos::before {
    content: "🎬";
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-modal-content {
        width: 95%;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--card-bg) inset !important;
    -webkit-text-fill-color: var(--text-light) !important;
    caret-color: var(--text-light);
    transition: background-color 50000s ease-in-out 0s;
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-poster,
.video-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.video-poster {
    z-index: 1;
}

.video-hover {
    opacity: 0;
    z-index: 2;
}

/* ============================================
   КАСТОМНЫЙ СКРОЛЛ ДЛЯ МОДАЛЬНЫХ ОКОН
   ============================================ */

.modal-content::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.modal-content::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
    background: var(--material-border);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-accent);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--primary-accent) 80%, white);
    cursor: pointer;
}

.modal-content,
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-accent) var(--material-border);
}

.mobile-nav::-webkit-scrollbar {
    width: 10px;
}
.mobile-nav::-webkit-scrollbar-track {
    background: var(--material-border);
    border-radius: 10px;
}
.mobile-nav::-webkit-scrollbar-thumb {
    background: var(--primary-accent);
    border-radius: 10px;
}

.audio-container {
    width: 100%;
    margin: 0 auto;
    margin-bottom: clamp(15px, 5vw, 50px);
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(15px, 5vw, 50px);
    margin-bottom: clamp(15px, 5vw, 50px);
}

.audio-card {
    background: var(--card-bg);
    border-radius: 10px;
    border: 5px solid var(--card-bg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 10px var(--shadow);
}

.audio-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--shadow);
}

.audio-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--card-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.audio-card:hover .audio-thumbnail img {
    transform: scale(1.05);
}

.audio-card .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: color-mix(in srgb, var(--primary-accent), transparent 25%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.audio-card:hover .play-overlay {
    opacity: 1;
}

.audio-info {
    padding: 15px 20px;
}

.audio-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.audio-description {
    color: var(--text-dark);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.audio-duration {
    display: inline-block;
    background: var(--card-bg);
    color: var(--text-dark);
    font-size: 0.7rem;
    border-radius: 5px;
}

.audio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.audio-modal.show {
    display: flex;
}

.audio-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px var(--shadow);
}

.audio-modal-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audio-modal-header h3 {
    color: var(--text-light);
    margin: 0;
    font-size: 1.2rem;
}

.audio-modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.audio-modal-close:hover {
    transform: scale(1.1);
    color: black;
}

.audio-player-container {
    padding: 20px;
    background: var(--site-bg);
    text-align: center;
}

.audio-player-container audio {
    width: 100%;
    border-radius: 30px;
}

.empty-audio {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    color: var(--text-light);
}

.empty-audio::before {
    content: "🎵";
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .audio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .audio-modal-content {
        width: 95%;
    }
}

.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.pdf-modal.show {
    display: flex;
}

.pdf-modal-content {
    background: var(--card-bg);
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px var(--shadow);
    overflow: hidden;
}

.pdf-modal-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-modal-header h3 {
    color: var(--text-dark);
    margin: 0;
}

.pdf-modal-close {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.pdf-modal-close:hover {
    transform: scale(1.1);
    color: black;
}

.pdf-modal-body {
    flex: 1;
    padding: 0;
    background: #525659;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 70vh;
    display: block;
}

.pdf-thumbnail {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}
.pdf-thumbnail:hover {
    transform: scale(1.02);
}
.pdf-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    pointer-events: none;
}