/* ===== ОБЩИЕ СТИЛИ ===== */
:root {
    /* Цветовая палитра */
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;

    --brand-color: #990f02;             /* Цвет бренда */
    --brand-color-light: #b52518;
    --brand-color: #321c8a;             /* Цвет бренда */
    --brand-color-light: #4a0979;
    --primary-color: #2c3e50;           /* Основной цвет */
    --secondary-color: #3498db;         /* Вторичный цвет */
    --medical-color: #1abc9c;           /* Медицинский акцент */
    --accent-color: #e74c3c;            /* Акцентный цвет */
    --success-color: #27ae60;           /* Цвет успеха */
    --warning-color: #f39c12;           /* Цвет предупреждения */
    --light-color: #ecf0f1;             /* Светлый фон */
    --dark-color: #2c3e50;              /* Темный текст */
    --text-color: #333;                 /* Основной цвет текста */
    --info-color: #3498db;              /* Цвет информирования */
    --danger-color: #e74c3c;            /* Цвет ошибки */
    --gray-color: #95a5a6;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --tile-group-color: #51cf66;        /* Плитка "Моя группа" */
    --tile-chat-color: #339af0;         /* Плитка "Чат группы" */
    --tile-attendance-color: #ffd43b;   /* Плитка "Посещаемость" */
    --tile-payment-color: #cc5de8;      /* Плитка "Оплата" */
    
    /* Градиенты для плиток */
    --gradient-group: linear-gradient(135deg, var(--tile-group-color) 0%, #40c057 100%);
    --gradient-chat: linear-gradient(135deg, var(--tile-chat-color) 0%, #228be6 100%);
    --gradient-attendance: linear-gradient(135deg, var(--tile-attendance-color) 0%, #fcc419 100%);
    --gradient-payment: linear-gradient(135deg, var(--tile-payment-color) 0%, #be4bdb 100%);
    
    /* Тени */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    
    /* Скругления */
    --border-radius: 12px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    
    /* Анимации */
    --transition: all 0.3s ease;
    --transition-fast: 0.2s ease;
    --transition-slow: 0.5s ease;

    /* Отступы */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Шрифты */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

html,
body {
    background-color: var(--brand-color);
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f7fa;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== ХЕДЕР ===== */
header {
    background-color: #084298;
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Кнопка "Назад" */
.back-btn {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.back-btn.visible {
    display: flex;
}

/* Логотип */
.logo {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #0d6efd;
    font-size: 24px;
}

/* Панель управления пользователем */
.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-btn, .logout-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.auth-btn:hover, .logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.logout-btn {
    display: none;
}

.user-info {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
}

.user-info i {
    font-size: 18px;
}

.user-info span {
    font-size: 14px;
    font-weight: 500;
}

/* Главная страница (до авторизации) */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    animation: fadeIn 0.5s ease;
    flex: 1;
}

/* Приветственная карточка */
.welcome-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
}

.welcome-card h1 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
}

.welcome-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

/* Карточки действий */
.action-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(calc((100% / 3) - 1.5rem), 1fr));
    gap: var(--spacing-lg);
}

.action-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px 25px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    //align-items: center;
    gap: var(--spacing-md);;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.action-card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.action-card h3 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.action-card p {
    color: var(--gray-color);;
    font-size: var(--font-size-base);
    line-height: 1.4;
    margin: 0;
}

.action-card-footer {
    display: flex;
    justify-content: space-between;
    color: var(--secondary-color);
    font-size: var(--font-size-md);
    margin-top: auto;
}

/* Карточка обновлений */
.updates-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.updates-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.updates-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Общие карточки */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card h2, .card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== ФОРМА АВТОРИЗАЦИИ ===== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 73px);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    animation: slideIn 0.5s ease;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow) !important;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Группы формы */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Кнопки */
.btn {
    display: block;
    width: 100%;
    padding: 18px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--medical-color);
}

.btn-primary:hover {
    background-color: #16a085;
}

/* Сообщения об ошибках */
.alert {
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
    border-left: 4px solid var(--accent-color);
}

/* Демо-данные */
.demo-credentials {
    margin-top: 25px;
    padding: 20px;
    background-color: #e7f5ff;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-size: 14px;
    color: #1864ab;
    border: 1px solid #a5d8ff;
}

.demo-credentials p {
    margin-bottom: 8px;
}

.demo-credentials p:last-child {
    margin-bottom: 0;
}

.demo-credentials strong {
    font-weight: 600;
}

.demo-credentials code {
    background-color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
}

/* ===== SPA ИНТЕРФЕЙС ПОСЛЕ АВТОРИЗАЦИИ ===== */
#spa-container {
    padding: 20px 0;
}

/* Сетка плиток */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Общие стили плиток */
.tile {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Верхняя полоска плитки */
.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

/* Цвета верхних полосок для каждой плитки */
.tile-group::before {
    background: var(--gradient-group);
}

.tile-chat::before {
    background: var(--gradient-chat);
}

.tile-attendance::before {
    background: var(--gradient-attendance);
}

.tile-payment::before {
    background: var(--gradient-payment);
}

/* Иконка плитки */
.tile-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow);
}

.tile-group .tile-icon {
    background: var(--gradient-group);
}

.tile-chat .tile-icon {
    background: var(--gradient-chat);
}

.tile-attendance .tile-icon {
    background: var(--gradient-attendance);
}

.tile-payment .tile-icon {
    background: var(--gradient-payment);
}

/* Заголовок плитки */
.tile-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Содержимое плитки */
.tile-content {
    flex: 1;
    margin-bottom: 15px;
}

.tile-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-color);
    line-height: 1;
}

.tile-subvalue {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.tile-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Статистика посещаемости */
.attendance-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.attendance-stats p {
    font-size: 0.9rem;
    color: var(--dark-color);
    display: flex;
    justify-content: space-between;
}

.attendance-stats p span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Статус оплаты */
.tile-status {
    font-size: 0.95rem;
    color: var(--success-color);
    font-weight: 500;
    padding: 6px 12px;
    background-color: rgba(39, 174, 96, 0.1);
    border-radius: var(--border-radius-sm);
    display: inline-block;
    margin-top: 10px;
}

/* Кнопка чата */
.chat-btn {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: var(--tile-chat-color);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--tile-chat-color);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
}

.chat-btn:hover {
    background: var(--tile-chat-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Футер плитки */
.tile-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.tile-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    text-decoration: none;
}

.tile:hover .tile-link {
    gap: 10px;
    color: var(--secondary-color);
}

/* ===== ДЕТАЛЬНАЯ ИНФОРМАЦИЯ ПЛИТКИ ===== */
.tile-detail {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.5s ease;
}

.tile-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.tile-detail-header h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.close-detail {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #777;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-detail:hover {
    background: #f8f9fa;
    color: var(--accent-color);
    transform: rotate(90deg);
}

.tile-detail-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.detail-item-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-item-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.4;
}

/* ===== ФИЛЬТРЫ РАСПИСАНИЯ ===== */
.schedule-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

/* ===== ПУБЛИЧНОЕ РАСПИСАНИЕ ===== */
#publicScheduleContent {
    margin-top: 20px;
    min-height: 300px;
}

/* Таблица расписания */
.schedule-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: white;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.schedule-table thead {
    background-color: var(--primary-color);
}

.schedule-table th {
    padding: 18px 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-table th:last-child {
    border-right: none;
}

.schedule-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: var(--transition);
}

.schedule-table tbody tr:hover {
    background-color: #f8f9fa;
}

.schedule-table tbody tr:last-child {
    border-bottom: none;
}

.schedule-table td {
    padding: 16px 15px;
    vertical-align: middle;
    color: var(--text-color);
}

.schedule-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

/* Типы занятий */
.lesson-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lesson-type-lecture {
    background-color: rgba(52, 152, 219, 0.1);
    color: #2980b9;
}

.lesson-type-practice {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.lesson-type-lab {
    background-color: rgba(155, 89, 182, 0.1);
    color: #8e44ad;
}

.lesson-type-seminar {
    background-color: rgba(241, 196, 15, 0.1);
    color: #f39c12;
}

/* Сообщение при пустом расписании */
.empty-schedule {
    text-align: center;
    padding: 60px 20px;
    color: #777;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.empty-schedule i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #ddd;
    opacity: 0.5;
}

.empty-schedule h3 {
    display: block;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.empty-schedule p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

/* Сообщение при пустом разделе */
.empty-section {
    text-align: center;
    margin-top: 20px;
    padding: 60px 20px;
    color: #777;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.empty-section i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #ddd;
    opacity: 0.5;
}

.empty-section h3 {
    display: block;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.empty-section p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== FAQ (ЧАСТЫЕ ВОПРОСЫ) ===== */
.faq-search {
    margin-bottom: 25px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Элемент FAQ */
.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    //box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    padding: 22px 25px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question i {
    transition: var(--transition);
    color: var(--secondary-color);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px 25px;
    max-height: 1000px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    background-color: var(--primary-color);
    color: white;
}

.faq-item.active .faq-question i {
    color: white;
}

/* ===== РАСПИСАНИЕ В SPA ИНТЕРФЕЙСЕ ===== */
.schedule-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.week-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
}

.week-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: white;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 16px;
}

.week-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

#current-week-label {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 150px;
    text-align: center;
    font-size: 16px;
}

.week-schedule {
    display: none;
}

.week-schedule.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Дни расписания */
.schedule-day {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e9ecef;
    background-color: white;
}

.day-header {
    padding: 18px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.day-header:hover {
    background: #e9ecef;
}

.day-header.expanded {
    background: var(--primary-color);
    color: white;
    border-bottom-color: #e9ecef;
}

.day-header.expanded .day-name,
.day-header.expanded .day-date {
    color: white;
}

.day-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-date {
    color: #666;
    font-size: 0.9rem;
}

.today-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.day-content.expanded {
    padding: 20px;
    max-height: 2000px;
}

/* Занятия */
.lesson {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 15px;
    background: white;
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    align-items: center;
}

.lesson:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.lesson-time {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lesson-start {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.lesson-end {
    font-size: 0.9rem;
    color: #666;
}

.lesson-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lesson-subject {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.lesson-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.lesson-teacher {
    font-style: italic;
}

.lesson-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
}

.lesson-type {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.lesson-room {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.no-lessons {
    text-align: center;
    padding: 30px;
    color: #777;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: var(--border-radius-sm);
    margin: 10px 0;
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 25px;
    background: var(--dark-color);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.5s ease;
    max-width: 400px;
    min-width: 300px;
}

.notification i {
    font-size: 20px;
}

.notification.success {
    background: var(--success-color);
}

.notification.error {
    background: var(--accent-color);
}

.notification.info {
    background: var(--secondary-color);
}

/* ===== ФУТЕР ===== */
footer {
    text-align: center;
    padding: 25px 20px;
    color: #777;
    font-size: 14px;
    border-top: 1px solid #eee;
    background-color: white;
    flex-shrink: 0;
    margin-top: auto;
}

footer p {
    margin-bottom: 5px;
}

footer p:last-child {
    margin-bottom: 0;
}

/* ===== ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ ===== */
.hidden {
    display: none !important;
}

.icon {
    margin-right: 8px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Хедер */
    header {
        padding: 15px;
    }
    
    .logo span {
        font-size: 16px;
    }
    
    .auth-btn span, .logout-btn span {
        display: none;
    }
    
    .auth-btn, .logout-btn {
        padding: 8px;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .dashboard {
        gap: 30px;
        padding: 15px;
    }

    .welcome-card {
        padding: 20px;
    }
    
    .welcome-card h1 {
        font-size: 22px;
    }
    
    .action-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(calc(50% - 1.5rem), 1fr));
        gap: 15px;
    }
    
    .action-card {
        padding: 12px;
        gap: var(--spacing-md);
    }

    .action-card p {
        line-height: 1.2;
    }

    .action-card-footer {
        font-size: var(--font-size-base);
    }

    .card {
        padding: 20px;
        margin-bottom: 0;
        border-radius: unset;
        box-shadow: unset;
    }

    .empty-schedule {
        padding: 30px 15px;
        box-shadow: var(--shadow-md);
    }

    .empty-section {
        padding: 30px 15px;
        box-shadow: var(--shadow-md);
    }
    
    /* Плитки */
    .tiles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tile {
        padding: 20px;
        min-height: 200px;
    }
    
    /* Фильтры расписания */
    .schedule-filters {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    /* Таблица расписания */
    .schedule-table-container {
        font-size: 14px;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 12px 10px;
    }
    
    /* Занятия в расписании */
    .lesson {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }
    
    .lesson-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 10px;
    }
    
    /* FAQ */
    .faq-item {
        //box-shadow: var(--shadow-md);
    }

    .faq-item:hover {
        box-shadow: var(--shadow-md);
    }

    .faq-question {
        padding: 15px;
    }
    
    .faq-answer {
        padding: 0 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 15px 15px 15px;
    }
    
    /* Уведомления */
    .notification {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
        min-width: auto;
    }
    
    /* Футер */
    footer {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .tile-detail-content {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .week-switcher {
        width: 100%;
        justify-content: space-between;
    }
}