/* Основные стили для сайта автошколы */

@import url('./icons.css');

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Боковое меню */
@media (min-width: 969px) {
    body:not(.no-sidebar) {
        padding-left: 280px;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    transition: transform 0.2s;
}

.sidebar-brand:hover {
    transform: scale(1.05);
}

.sidebar-brand-icon {
    font-size: 1.75rem;
}

.sidebar-brand-text {
    font-weight: 700;
}

.sidebar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s;
}

.sidebar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0;
    /* Кастомный тонкий скроллбар */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* Кастомный скроллбар для WebKit браузеров (Chrome, Safari, Edge) */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    transition: background 0.2s;
}

.sidebar-nav:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    margin: 0.25rem 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-menu li.active > a {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar-menu-divider {
    margin: 1rem 0 0.5rem 0;
    padding: 0.5rem 1.5rem 0.25rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-menu-divider:first-child {
    margin-top: 0.5rem;
    border-top: none;
}

.sidebar-divider-text {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-color);
    margin-top: 0.5rem;
}

.sidebar-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}

.sidebar-text {
    flex: 1;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--danger-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    width: 100%;
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Иконка выхода рядом с именем пользователя (для мобильных) */
.sidebar-logout-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--danger-color);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-left: auto;
}

.sidebar-logout-icon:hover {
    background: rgba(239, 68, 68, 0.1);
}

.sidebar-logout-icon .icon {
    font-size: 1.25rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Мобильное меню */
@media (max-width: 968px) {
    body {
        padding-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
        will-change: transform;
    }
    
    .sidebar.active {
        transform: translateX(0);
        visibility: visible;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .sidebar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .sidebar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .sidebar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Исправление: делаем sidebar-nav прокручиваемым, а footer фиксированным */
    /* На мобильных перемещаем sidebar-user наверх */
    .sidebar-header {
        flex-shrink: 0;
        min-height: auto;
        order: 1;
    }
    
    .sidebar-footer {
        flex-shrink: 0;
        order: 2; /* Перемещаем footer наверх, после header */
        margin-top: 0;
        margin-bottom: 0;
        padding: 1rem 1.5rem;
        background: var(--light-color);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        max-height: 110px;
        overflow: hidden;
        min-height: 70px;
    }
    
    .sidebar-nav {
        flex: 1 1 0;
        order: 3; /* Навигация идет после header и footer */
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }
    
    /* На мобильных: показываем иконку выхода рядом с именем, скрываем отдельную кнопку */
    .sidebar-user {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        align-items: center;
        gap: 0.5rem;
        min-height: 50px;
        display: flex;
    }
    
    .sidebar-user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    .sidebar-user-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        display: flex;
        align-items: center;
    }
    
    .sidebar-user-name {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
    }
    
    .sidebar-logout-icon {
        display: flex !important; /* Принудительно показываем на мобильных */
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        background: rgba(239, 68, 68, 0.1);
        border-radius: 8px;
        color: var(--danger-color);
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
        margin-left: auto;
    }
    
    .sidebar-logout-icon:hover {
        background: var(--danger-color);
        color: white;
        transform: scale(1.1);
    }
    
    .sidebar-logout-icon:active {
        transform: scale(0.95);
    }
    
    .sidebar-logout-icon .icon {
        font-size: 1.2rem;
    }
    
    .sidebar-logout {
        display: none;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .sidebar-footer {
        padding: 0.75rem 1rem;
        max-height: 90px;
        min-height: 60px;
    }
    
    .sidebar-user {
        min-height: 40px;
        gap: 0.4rem;
    }
    
    .sidebar-user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .sidebar-user-name {
        font-size: 0.8rem;
    }
    
    .sidebar-logout-icon {
        width: 32px;
        height: 32px;
    }
    
    .sidebar-logout-icon .icon {
        font-size: 1rem;
    }
    
    .sidebar-header {
        padding: 1rem;
    }
    
    .sidebar-nav {
        padding: 0.5rem 0;
    }
}

/* Кнопка открытия меню на мобильных */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    margin: 4px 0;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: block;
    }
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #059669;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Карточки */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Сетка */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }

@media (max-width: 768px) {
    .col-6, .col-4, .col-3 {
        width: 100%;
    }
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
}

.stat-card.secondary {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
}

.stat-card.warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Тесты */
.test-question {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.test-question-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.test-answers {
    list-style: none;
}

.test-answer {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.test-answer:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.test-answer.selected {
    border-color: var(--primary-color);
    background: #dbeafe;
}

.test-answer.correct {
    border-color: var(--secondary-color);
    background: #d1fae5;
}

.test-answer.incorrect {
    border-color: var(--danger-color);
    background: #fee2e2;
}

/* Уроки */
.lesson-list {
    display: grid;
    gap: 1.5rem;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.lesson-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.lesson-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.25rem;
}

.lesson-info {
    flex: 1;
}

.lesson-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lesson-meta {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Алерты */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--secondary-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--primary-color);
}

/* Прогресс бар */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
}

/* Таблицы */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
}

.table tr:hover {
    background: #f9fafb;
}

/* Футер */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Лендинг */
/* Navbar для лендинга */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.2s;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav li {
    margin: 0;
}

.navbar-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.navbar-nav a:hover {
    color: var(--primary-color);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.navbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.navbar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 968px) {
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .navbar-user {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-user .btn {
        width: 100%;
    }
}

/* Hero секция */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out;
}

.hero .btn {
    animation: fadeInUp 1.2s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

/* Features секция */
.features {
    padding: 6rem 0;
    background: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    color: white;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* Секции лендинга */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Packages Section */
.packages-section {
    padding: 6rem 0;
    background: white;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.package-card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.package-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.package-card.featured:hover {
    transform: scale(1.08) translateY(-8px);
}

.package-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.package-card.featured .package-header {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
}

.package-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.package-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.package-badge.premium {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.package-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.package-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.package-feature .icon {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.package-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Секция курсов */
.courses-section {
    padding: 6rem 0;
    background: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.course-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(30, 64, 175, 0.05));
}

.course-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.course-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    color: white;
    transition: transform 0.3s;
}

.course-card:hover .course-icon {
    transform: scale(1.1) rotate(5deg);
}

.course-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.course-description {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-features {
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
}

.course-features li:last-child {
    border-bottom: none;
}

.course-features .icon {
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* Секция контактов */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(30, 64, 175, 0.05));
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    color: white;
    transition: transform 0.3s;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contact-card p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Страница логина */
.login-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.login-form {
    padding: 2.5rem;
}

.login-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.login-form .form-label .icon {
    color: var(--primary-color);
}

.login-form .form-control {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.login-footer {
    padding: 1.5rem 2.5rem 2.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
}

.login-footer p {
    color: var(--gray-color);
    margin: 0;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .courses-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .login-form {
        padding: 2rem;
    }
    
    .login-header {
        padding: 2rem 1.5rem 1.5rem;
    }
}

/* Темная тема */
.dark-theme {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #e5e5e5;
    --light-color: #1a1a1a;
    --gray-color: #b0b0b0;
    --border-color: #3a3a3a;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --card-bg: #242424;
    --card-hover-bg: #2a2a2a;
    --sidebar-bg: #1f1f1f;
    --sidebar-border: #3a3a3a;
    --input-bg: #2a2a2a;
    --input-border: #3a3a3a;
    --table-bg: #242424;
    --table-header-bg: #2a2a2a;
    --table-hover-bg: #2a2a2a;
}

.dark-theme body {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.dark-theme .sidebar {
    background: var(--sidebar-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.dark-theme .sidebar-header {
    border-bottom-color: var(--sidebar-border);
}

.dark-theme .sidebar-menu a {
    color: var(--dark-color);
}

.dark-theme .sidebar-menu a:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-color);
}

.dark-theme .sidebar-menu li.active > a {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
}

.dark-theme .sidebar-menu-divider {
    border-top-color: var(--border-color);
}

.dark-theme .sidebar-divider-text {
    color: var(--gray-color);
}

.dark-theme .sidebar-nav {
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.dark-theme .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

.dark-theme .sidebar-nav:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
}

.dark-theme .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.dark-theme .sidebar-footer {
    background: var(--sidebar-bg);
    border-top-color: var(--sidebar-border);
}

/* Дополнительные стили для темной темы на мобильных */
@media (max-width: 968px) {
    .dark-theme .sidebar-footer {
        background: var(--sidebar-bg);
    }
}

.dark-theme .sidebar-user-name {
    color: var(--dark-color);
}

.dark-theme .sidebar-logout-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
}

.dark-theme .sidebar-logout-icon:hover {
    background: var(--danger-color);
    color: white;
}

.dark-theme .sidebar-toggle span {
    background: var(--dark-color);
}

.dark-theme .mobile-menu-toggle {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.dark-theme .mobile-menu-toggle span {
    background: var(--dark-color);
}

.dark-theme .card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .card:hover {
    background: var(--card-hover-bg);
}

.dark-theme .card-title {
    color: var(--dark-color);
}

.dark-theme .card-header {
    border-bottom-color: var(--border-color);
}

.dark-theme .form-label {
    color: var(--dark-color);
}

.dark-theme .form-control {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--dark-color);
}

.dark-theme .form-control:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.dark-theme .form-control::placeholder {
    color: var(--gray-color);
}

.dark-theme .table {
    background: var(--table-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .table th {
    background: var(--table-header-bg);
    color: var(--dark-color);
    border-bottom-color: var(--border-color);
}

.dark-theme .table td {
    border-bottom-color: var(--border-color);
    color: var(--dark-color);
}

.dark-theme .table tr:hover {
    background: var(--table-hover-bg);
}

.dark-theme .alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-left-color: var(--secondary-color);
}

.dark-theme .alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-left-color: var(--danger-color);
}

.dark-theme .alert-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-left-color: var(--primary-color);
}

.dark-theme .progress-bar {
    background: var(--border-color);
}

.dark-theme .test-question {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .test-question-title {
    color: var(--dark-color);
}

.dark-theme .test-answer {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--dark-color);
}

.dark-theme .test-answer:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
}

.dark-theme .test-answer.selected {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-color);
}

.dark-theme .lesson-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .lesson-item:hover {
    background: var(--card-hover-bg);
}

.dark-theme .lesson-title {
    color: var(--dark-color);
}

.dark-theme h1, .dark-theme h2, .dark-theme h3, .dark-theme h4, .dark-theme h5, .dark-theme h6 {
    color: var(--dark-color);
}

.dark-theme p {
    color: var(--dark-color);
}

/* Переключатель темы в меню */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.theme-toggle:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.dark-theme .theme-toggle:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-color);
}

.theme-toggle .sidebar-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}

.theme-toggle .sidebar-text {
    flex: 1;
}

/* Дополнительные стили для темной темы */
.dark-theme select.form-control {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--dark-color);
}

.dark-theme select.form-control option {
    background: var(--card-bg);
    color: var(--dark-color);
}

.dark-theme .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dark-theme .btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.dark-theme .empty-state {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .empty-state-title {
    color: var(--dark-color);
}

.dark-theme .empty-state-text {
    color: var(--gray-color);
}

.dark-theme .section-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .section-card:hover {
    background: var(--card-hover-bg);
}

/* Темная тема для лендинга */
.dark-theme .navbar {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.dark-theme .navbar-nav {
    background: var(--card-bg);
}

.dark-theme .navbar-nav a {
    color: var(--dark-color);
}

.dark-theme .navbar-toggle span {
    background: var(--dark-color);
}

.dark-theme .hero {
    background: linear-gradient(135deg, #4c6ef5 0%, #5f3dc4 100%);
}

.dark-theme .features {
    background: var(--light-color);
}

.dark-theme .feature-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.dark-theme .feature-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--primary-color);
}

.dark-theme .section-title {
    color: var(--dark-color);
}

.dark-theme .section-subtitle {
    color: var(--gray-color);
}

.dark-theme .packages-section {
    background: var(--card-bg);
}

.dark-theme .package-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.dark-theme .package-card:hover {
    border-color: var(--primary-color);
}

.dark-theme .package-card.featured {
    border-color: var(--secondary-color);
}

.dark-theme .courses-section {
    background: var(--light-color);
}

.dark-theme .course-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.dark-theme .course-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--primary-color);
}

.dark-theme .course-card.featured {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
    border-color: var(--primary-color);
}

.dark-theme .course-title {
    color: var(--dark-color);
}

.dark-theme .course-description {
    color: var(--gray-color);
}

.dark-theme .course-features li {
    color: var(--dark-color);
    border-bottom-color: var(--border-color);
}

.dark-theme .contact-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
}

.dark-theme .contact-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.dark-theme .contact-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--primary-color);
}

.dark-theme .contact-card h3 {
    color: var(--dark-color);
}

.dark-theme .contact-card p {
    color: var(--gray-color);
}

.dark-theme .contact-card a {
    color: var(--primary-color);
}

.dark-theme .login-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .login-form .form-label {
    color: var(--dark-color);
}

.dark-theme .login-form .form-control {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--dark-color);
}

.dark-theme .login-form .form-control:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.dark-theme .login-footer {
    background: var(--light-color);
    border-top-color: var(--border-color);
}

.dark-theme .login-footer p {
    color: var(--gray-color);
}

.dark-theme .login-footer a {
    color: var(--primary-color);
}

.dark-theme .footer {
    background: var(--sidebar-bg);
    border-top: 1px solid var(--border-color);
}

/* Стили для админ-панели в темной теме */
.dark-theme .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dark-theme .stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .stat-card:hover {
    background: var(--card-hover-bg);
}

.dark-theme .action-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .action-card:hover {
    background: var(--card-hover-bg);
}

.dark-theme .action-card-header {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--input-bg) 100%);
    border-bottom-color: var(--border-color);
}

.dark-theme .action-card-title {
    color: var(--dark-color);
}

.dark-theme .action-card-description {
    color: var(--gray-color);
}

.dark-theme .section-header {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--input-bg) 100%);
    border-bottom-color: var(--border-color);
}

.dark-theme .section-title {
    color: var(--dark-color);
}

.dark-theme .activity-table thead,
.dark-theme .users-table thead,
.dark-theme .tests-table thead,
.dark-theme .lessons-table thead {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--input-bg) 100%);
}

.dark-theme .activity-table th,
.dark-theme .users-table th,
.dark-theme .tests-table th,
.dark-theme .lessons-table th {
    color: var(--dark-color);
    border-bottom-color: var(--border-color);
}

.dark-theme .activity-table td,
.dark-theme .users-table td,
.dark-theme .tests-table td,
.dark-theme .lessons-table td {
    border-bottom-color: var(--border-color);
    color: var(--dark-color);
}

.dark-theme .activity-table tbody tr:hover,
.dark-theme .users-table tbody tr:hover,
.dark-theme .tests-table tbody tr:hover,
.dark-theme .lessons-table tbody tr:hover {
    background: var(--table-hover-bg);
}

.dark-theme .user-cell,
.dark-theme .user-info-cell {
    color: var(--dark-color);
}

.dark-theme .role-badge,
.dark-theme .status-badge,
.dark-theme .category-badge,
.dark-theme .action-badge,
.dark-theme .resource-type,
.dark-theme .access-badge {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .btn-action {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--dark-color);
}

.dark-theme .btn-action:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.dark-theme .info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .info-label {
    color: var(--gray-color);
}

.dark-theme .info-value {
    color: var(--dark-color);
}

.dark-theme .form-hint {
    color: var(--gray-color);
}

.dark-theme .checkbox-group {
    color: var(--dark-color);
}

.dark-theme .period-selector {
    background: var(--card-bg);
}

.dark-theme .period-grid input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: white;
}

.dark-theme .custom-date-input {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--dark-color);
}

.dark-theme .access-status-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .info-box {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    color: var(--dark-color);
}

.dark-theme .stats-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.dark-theme .empty-state {
    color: var(--gray-color);
}

.dark-theme .test-item,
.dark-theme .lesson-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .test-item:hover,
.dark-theme .lesson-item:hover {
    background: var(--card-hover-bg);
}

.dark-theme .test-title,
.dark-theme .lesson-title {
    color: var(--dark-color);
}

.dark-theme .test-meta,
.dark-theme .lesson-meta {
    color: var(--gray-color);
}

.dark-theme .test-description,
.dark-theme .lesson-description {
    color: var(--gray-color);
}

.dark-theme .category-badge-large {
    color: white;
}

.dark-theme .exam-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dark-theme .exam-feature {
    color: rgba(255, 255, 255, 0.95);
}

/* Дополнительные стили для темной темы */
.dark-theme .page-header-text h1,
.dark-theme .page-header-text p {
    color: white;
}

.dark-theme .stat-value {
    color: var(--dark-color);
}

.dark-theme .stat-card.secondary .stat-value,
.dark-theme .stat-card.warning .stat-value {
    color: white;
}

.dark-theme .order-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.dark-theme .category-badge {
    color: white;
}

.dark-theme .file-name {
    color: var(--gray-color);
    font-family: monospace;
}

.dark-theme .test-id,
.dark-theme .lesson-id,
.dark-theme .user-id,
.dark-theme .resource-id {
    color: var(--gray-color);
    font-family: monospace;
}

.dark-theme .phone-cell,
.dark-theme .date-cell,
.dark-theme .duration-cell,
.dark-theme .score-cell {
    color: var(--gray-color);
}

.dark-theme .description-cell {
    color: var(--dark-color);
}

.dark-theme .ip-address {
    color: var(--gray-color);
    font-family: monospace;
}

.dark-theme .btn-large {
    background: var(--primary-color);
    color: white;
}

.dark-theme .btn-large:hover {
    background: var(--primary-dark);
}

.dark-theme .access-checkbox-wrapper {
    color: var(--dark-color);
}

.dark-theme input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.dark-theme input[type="radio"] {
    accent-color: var(--primary-color);
}

.dark-theme .period-grid label {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--dark-color);
}

.dark-theme .period-grid label:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
}

.dark-theme .switch-toggle {
    background: var(--border-color);
}

.dark-theme .switch-toggle.active {
    background: var(--primary-color);
}

.dark-theme .user-avatar-small,
.dark-theme .user-avatar-mini,
.dark-theme .user-avatar-large {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.dark-theme .progress-info {
    color: var(--dark-color);
}

.dark-theme .progress-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.dark-theme .lesson-status-badge,
.dark-theme .test-status-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.dark-theme .lesson-meta-item,
.dark-theme .test-meta-item {
    color: var(--gray-color);
}

.dark-theme .exam-info h2,
.dark-theme .exam-info p {
    color: white;
}

.dark-theme .category-header {
    border-bottom-color: var(--border-color);
}

.dark-theme .page-header-title {
    color: white;
}

.dark-theme .result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dark-theme .result-score-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .result-status {
    color: var(--dark-color);
}

.dark-theme .result-stat-item {
    color: var(--gray-color);
}

.dark-theme .result-question-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .result-question-header {
    border-bottom-color: var(--border-color);
}

.dark-theme .result-question-number {
    color: var(--primary-color);
}

.dark-theme .result-question-status {
    color: var(--dark-color);
}

.dark-theme .profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dark-theme .profile-tabs {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .profile-tab {
    color: var(--gray-color);
}

.dark-theme .profile-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.dark-theme .info-row {
    border-bottom-color: var(--border-color);
}

.dark-theme .access-status {
    color: var(--dark-color);
}

.dark-theme .stat-mini-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .activity-item {
    border-bottom-color: var(--border-color);
}

/* Стили для всех элементов с белым фоном */
.dark-theme [style*="background: white"],
.dark-theme [style*="background:white"],
.dark-theme [style*="background:#ffffff"],
.dark-theme [style*="background:#fff"] {
    background: var(--card-bg) !important;
}

.dark-theme [style*="color: #1f2937"],
.dark-theme [style*="color:#1f2937"] {
    color: var(--dark-color) !important;
}

.dark-theme .result-score-value {
    color: white;
}

.dark-theme .result-stat-item {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.dark-theme .result-stat-value {
    color: white;
}

.dark-theme .result-stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.dark-theme .result-question-status.correct {
    background: rgba(16, 185, 129, 0.2);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.dark-theme .result-question-status.incorrect {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.dark-theme .profile-header-content {
    color: white;
}

.dark-theme .profile-name {
    color: white;
}

.dark-theme .profile-email {
    color: rgba(255, 255, 255, 0.9);
}

.dark-theme .profile-tab-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .info-card-item {
    border-bottom-color: var(--border-color);
}

.dark-theme .info-card-item-label {
    color: var(--gray-color);
}

.dark-theme .info-card-item-value {
    color: var(--dark-color);
}

.dark-theme .progress-circle-text {
    color: var(--primary-color);
}

.dark-theme .stat-mini-value {
    color: var(--dark-color);
}

.dark-theme .stat-mini-label {
    color: var(--gray-color);
}

.dark-theme .category-badge {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--dark-color);
}

.dark-theme .progress-bar-container {
    background: var(--border-color);
}

.dark-theme .progress-bar-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.dark-theme .dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dark-theme .quick-action-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .quick-action-card:hover {
    background: var(--card-hover-bg);
}

.dark-theme .result-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dark-theme .result-item:hover {
    background: var(--card-hover-bg);
}

