/*
Theme Name: Terminal
Description: Современная WordPress тема с Tailwind CSS для быстрой и гибкой разработки. Включает поддержку логотипа из /img/logo.png
Author: Terminal Team
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: terminal
Tags: custom-colors, custom-logo, custom-menu, featured-images, full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, blog, portfolio, news, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-header, flexible-header, sticky-post, threaded-comments, translation-ready, rtl-language-support

Terminal is a modern WordPress theme built with Tailwind CSS for fast and flexible development.
*/

/* Кастомные стили для темы Terminal */

/* Базовые стили */
html, body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

* {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.terminal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.terminal-logo {
    max-height: 60px;
    width: auto;
}

/* Стили для логотипа в терминале */
.terminal-main-logo {
    max-height: 80px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.terminal-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Кастомные компоненты */
.terminal-button {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.terminal-button:hover {
    background-color: #1d4ed8;
}

.terminal-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.terminal-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.terminal-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s;
}

.terminal-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Стили для модального окна */
#subject-modal .terminal-input,
#hospital-modal .terminal-input,
#student-modal .terminal-input,
#tutor-modal .terminal-input,
#event-modal .terminal-input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* Стили для кнопки закрытия модального окна */
.modal-close-btn {
    padding: 0.5rem !important;
    border: none !important;
    background: none !important;
    border-radius: 50% !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.modal-close-btn svg {
    color: #9ca3af !important;
    stroke: #9ca3af !important;
}

.modal-close-btn:hover {
    background-color: #f3f4f6 !important;
}

.modal-close-btn:hover svg {
    color: #6b7280 !important;
    stroke: #6b7280 !important;
}

/* Исправление проблем с иконками */
svg {
    display: inline-block;
    vertical-align: middle;
}

/* Специальные стили для иконок в таблицах */
.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

/* Убеждаемся, что SVG отображаются */
svg[fill="none"] {
    fill: none !important;
}

svg[stroke="currentColor"] {
    stroke: currentColor !important;
}

/* Серый фон для контентных областей */
.bg-gray-100 {
    background-color: #f3f4f6 !important;
}

/* Пастельные фоны для иконок */
.hover\:bg-blue-100:hover {
    background-color: #dbeafe !important;
}

.hover\:bg-pink-100:hover {
    background-color: #fce7f3 !important;
}

/* Специфичные стили для иконок в таблице предметов */
.edit-subject-btn svg {
    color: #9ca3af !important;
    fill: #9ca3af !important;
}

.edit-subject-btn:hover svg {
    color: #2563eb !important;
    fill: #2563eb !important;
}

.delete-subject-btn svg {
    color: #9ca3af !important;
    fill: #9ca3af !important;
}

.delete-subject-btn:hover svg {
    color: #db2777 !important;
    fill: #db2777 !important;
}

/* Стили для иконок в таблице больниц */
.edit-hospital-btn svg {
    color: #9ca3af !important;
    fill: #9ca3af !important;
}

.edit-hospital-btn:hover svg {
    color: #2563eb !important;
    fill: #2563eb !important;
}

.delete-hospital-btn svg {
    color: #9ca3af !important;
    fill: #9ca3af !important;
}

.delete-hospital-btn:hover svg {
    color: #db2777 !important;
    fill: #db2777 !important;
}

/* Стили для иконок в таблице учеников */
.edit-student-btn svg {
    color: #9ca3af !important;
    fill: #9ca3af !important;
}

.edit-student-btn:hover svg {
    color: #2563eb !important;
    fill: #2563eb !important;
}

.delete-student-btn svg {
    color: #9ca3af !important;
    fill: #9ca3af !important;
}

.delete-student-btn:hover svg {
    color: #db2777 !important;
    fill: #db2777 !important;
}

/* Стили для иконок в таблице тьюторов */
.edit-tutor-btn svg {
    color: #9ca3af !important;
    fill: #9ca3af !important;
}

.edit-tutor-btn:hover svg {
    color: #2563eb !important;
    fill: #2563eb !important;
}

.delete-tutor-btn svg {
    color: #9ca3af !important;
    fill: #9ca3af !important;
}

.delete-tutor-btn:hover svg {
    color: #db2777 !important;
    fill: #db2777 !important;
}

/* Стили для иконок в таблице событий */
.edit-event-btn svg {
    color: #9ca3af !important;
    fill: #9ca3af !important;
}

.edit-event-btn:hover svg {
    color: #2563eb !important;
    fill: #2563eb !important;
}

.delete-event-btn svg {
    color: #9ca3af !important;
    fill: #9ca3af !important;
}

.delete-event-btn:hover svg {
    color: #db2777 !important;
    fill: #db2777 !important;
}

/* Стили для кнопок без обводок и теней */
.edit-subject-btn,
.delete-subject-btn,
.edit-hospital-btn,
.delete-hospital-btn,
.edit-student-btn,
.delete-student-btn,
.edit-tutor-btn,
.delete-tutor-btn,
.edit-event-btn,
.delete-event-btn {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.edit-subject-btn:hover,
.delete-subject-btn:hover,
.edit-hospital-btn:hover,
.delete-hospital-btn:hover,
.edit-student-btn:hover,
.delete-student-btn:hover,
.edit-tutor-btn:hover,
.delete-tutor-btn:hover,
.edit-event-btn:hover,
.delete-event-btn:hover {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Стили для крестика удаления предметов в модальном окне тьюторов */
.remove-subject-btn {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0.25rem !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

.remove-subject-btn svg {
    color: #9ca3af !important;
    stroke: #9ca3af !important;
}

.remove-subject-btn:hover {
    background-color: #fef2f2 !important;
}

.remove-subject-btn:hover svg {
    color: #ef4444 !important;
    stroke: #ef4444 !important;
}

/* Принудительное выравнивание заголовков таблиц по левому краю */
th,
thead th,
table th,
.bg-gray-50 th,
thead.bg-gray-50 th {
    text-align: left !important;
}

/* Переопределяем возможные центрирующие стили */
.text-center th,
th.text-center {
    text-align: left !important;
}

/* Дополнительная специфичность для админ-таблиц */
.w-full.bg-white.border.border-gray-200.rounded-lg.shadow-sm th {
    text-align: left !important;
}

/* Принудительные стили для статуса событий */
.inline-flex.items-center.rounded-full.text-xs.font-medium {
    padding: 0.25rem 0.75rem !important;
}

/* Базовые стили для страниц */
html, body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 !important;
}

/* Убираем точки из списков в левом меню */
ul, ol {
    list-style-type: none !important;
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Специфично для левого меню админки */
.flex-1.py-4 ul,
.flex-1.py-4 ol {
    list-style-type: none !important;
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Дополнительно убираем отступы для маркеров */
li {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Принудительные отступы для таблиц на главной странице */
table th,
table td {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Специфично для таблицы мероприятий */
#events-list table th,
#events-list table td {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Стили для модального окна регистрации */
.modal-close-btn {
    background: none !important;
    border: none !important;
    padding: 0.5rem !important;
    border-radius: 50% !important;
    transition: background-color 0.2s ease !important;
}

.modal-close-btn:hover {
    background-color: #f3f4f6 !important;
}

.modal-close-btn svg {
    color: #6b7280 !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.modal-close-btn:hover svg {
    color: #374151 !important;
}

/* Стили для сканера штрихкодов */
#scanner-display .has-data {
    color: #2563eb !important;
    font-weight: bold !important;
}

#scanner-display .no-data {
    color: #9ca3af !important;
    font-style: italic !important;
}

/* Стили для кнопки регистрации */
#register-student-btn:disabled {
    background-color: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

#register-student-btn:not(:disabled) {
    background-color: #3b82f6 !important;
    color: white !important;
    cursor: pointer !important;
}

/* CSS Version: 09/12/2025 02:15:30 */

/* Стили для поля поиска */
.search-container {
    position: relative;
    width: auto;
    min-width: 200px;
    max-width: 320px;
    flex-shrink: 1;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1024px) {
    .search-container {
        max-width: 280px;
    }
    
    .terminal-search-input {
        padding: 0.625rem 1rem 0.625rem 2.5rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 768px) {
    .search-container {
        max-width: 240px;
    }
    
    .terminal-search-input {
        padding: 0.5rem 1rem 0.5rem 2.25rem;
        font-size: 0.8125rem;
    }
    
    .search-icon {
        left: 0.75rem;
    }
}

@media (max-width: 640px) {
    .flex.items-center.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .search-container {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
    
    .terminal-search-input {
        padding: 0.625rem 1rem 0.625rem 2.5rem;
    }
}

/* Дополнительная адаптивность для очень узких экранов */
@media (max-width: 480px) {
    .terminal-search-input {
        padding: 0.5rem 1rem 0.5rem 2.25rem;
        font-size: 0.875rem;
    }
    
    .search-icon {
        left: 0.625rem;
    }
}

/* Обеспечиваем, что поиск не выходит за границы контейнера */
.p-6.border-b.border-gray-200 {
    overflow: hidden;
}

.terminal-search-input {
    width: auto;
    min-width: 0;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #ffffff;
    color: #374151;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.terminal-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.terminal-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    transition: color 0.3s ease;
}

.terminal-search-input:focus + .search-icon {
    color: #2563eb;
}


/* Анимация для результатов поиска */
.search-results-enter {
    opacity: 0;
    transform: translateY(10px);
}

.search-results-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Состояние фокуса для контейнера поиска */
.search-container.search-focused .terminal-search-input {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-container.search-focused .search-icon {
    color: #2563eb;
}


/* Пульсация при загрузке поиска */
@keyframes searchPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.search-loading {
    animation: searchPulse 1.5s ease-in-out infinite;
}

/* Анимация для таблицы результатов */
#tutors-list {
    transition: opacity 0.3s ease;
}

#tutors-list.loading {
    opacity: 0.7;
}

/* Стили для подсветки найденного текста */
mark {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Стили для админки */
.bg-gray-900 {
    background-color: #111827;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-white {
    background-color: #ffffff;
}

.text-white {
    color: #ffffff;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-blue-600 {
    color: #2563eb;
}

.text-green-600 {
    color: #16a34a;
}

.text-red-600 {
    color: #dc2626;
}

/* Размеры */
.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-1\/6 {
    width: 16.666667%;
}

.w-1\/4 {
    width: 25%;
}

.w-3\/4 {
    width: 75%;
}

.w-5\/6 {
    width: 83.333333%;
}

.h-screen {
    height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* Отступы */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* Границы */
.border {
    border-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-gray-700 {
    border-color: #374151;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Тени */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Скрытие/показ */
.hidden {
    display: none;
}

/* Переходы */
.transition-colors {
    transition-property: color, background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Hover эффекты */
.hover\:bg-gray-800:hover {
    background-color: #1f2937;
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.hover\:text-blue-800:hover {
    color: #1e40af;
}

.hover\:text-white:hover {
    color: #ffffff;
}

/* Текст */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Позиционирование */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

/* Z-index */
.z-50 {
    z-index: 50;
}

/* Overflow */
.overflow-auto {
    overflow: auto;
}

.overflow-hidden {
    overflow: hidden;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

/* Цвета фона */
.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.bg-orange-100 {
    background-color: #fed7aa;
}

.bg-yellow-50 {
    background-color: #fefce8;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

/* Цвета текста */
.text-blue-800 {
    color: #1e40af;
}

.text-green-800 {
    color: #166534;
}

.text-red-800 {
    color: #991b1b;
}

.text-yellow-800 {
    color: #854d0e;
}

.text-blue-700 {
    color: #1d4ed8;
}

.text-green-700 {
    color: #15803d;
}

.text-red-700 {
    color: #b91c1c;
}

.text-yellow-700 {
    color: #a16207;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-300 {
    color: #d1d5db;
}

/* Цвета границ */
.border-green-300 {
    border-color: #86efac;
}

.border-red-300 {
    border-color: #fca5a5;
}

.border-blue-300 {
    border-color: #93c5fd;
}

.border-yellow-200 {
    border-color: #fde047;
}

/* Адаптивность */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Анимации */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Утилиты */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

.text-center {
    text-align: center;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-grow {
    flex-grow: 1;
}

.self-center {
    align-self: center;
}

.self-start {
    align-self: flex-start;
}

.self-end {
    align-self: flex-end;
}

/* Специальные стили для админки */
.terminal-admin-menu {
    background-color: #1b1b1b;
    color: white;
}

.terminal-admin-menu a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.terminal-admin-menu a:hover {
    background-color: #374151;
}

.terminal-admin-menu a.active {
    background-color: #374151;
}

/* Стили для форм */
.terminal-form-group {
    margin-bottom: 1rem;
}

.terminal-form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.terminal-form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s;
}

.terminal-form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Стили для кнопок */
.terminal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.terminal-btn-primary {
    background-color: #2563eb;
    color: white;
}

.terminal-btn-primary:hover {
    background-color: #1d4ed8;
}

.terminal-btn-secondary {
    background-color: #6b7280;
    color: white;
}

.terminal-btn-secondary:hover {
    background-color: #4b5563;
}

.terminal-btn-danger {
    background-color: #dc2626;
    color: white;
}

.terminal-btn-danger:hover {
    background-color: #b91c1c;
}

.terminal-btn-success {
    background-color: #16a34a;
    color: white;
}

.terminal-btn-success:hover {
    background-color: #15803d;
}

/* Стили для карточек */
.terminal-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.terminal-card-body {
    padding: 1.5rem;
}

.terminal-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

/* Стили для таблиц */
.terminal-table {
    width: 100%;
    border-collapse: collapse;
}

.terminal-table th,
.terminal-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.terminal-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.terminal-table tr:hover {
    background-color: #f9fafb;
}

/* Стили для модальных окон */
.terminal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.terminal-modal {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 28rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.terminal-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-modal-body {
    padding: 1.5rem;
}

.terminal-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Стили для уведомлений */
.terminal-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.terminal-alert-success {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.terminal-alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Стили для статистики тьютора */
#refresh-statistics-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

#refresh-statistics-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3) !important;
}

#refresh-statistics-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2) !important;
}

/* Стили для таблицы статистики */
.statistics-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    background: white !important;
}

.statistics-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

.statistics-table th {
    padding: 16px 12px !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #374151 !important;
    border-bottom: 2px solid #e5e7eb !important;
    position: relative !important;
}

.statistics-table th:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 20% !important;
    bottom: 20% !important;
    width: 1px !important;
    background: #d1d5db !important;
}

.statistics-table tbody tr {
    transition: all 0.2s ease !important;
}

.statistics-table tbody tr:hover {
    background: #f8fafc !important;
}

/* Стили для основных строк уроков */
.lesson-row {
    background: white !important;
    border-bottom: 2px solid #f3f4f6 !important;
}

.lesson-row td {
    padding: 16px 12px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    font-size: 14px !important;
    color: #374151 !important;
    vertical-align: middle !important;
}

.lesson-row td:first-child {
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.lesson-row td:nth-child(2) {
    font-weight: 500 !important;
    color: #059669 !important;
}

.lesson-row td:nth-child(3),
.lesson-row td:nth-child(4) {
    font-family: 'Courier New', monospace !important;
    color: #6b7280 !important;
}

.lesson-row td:last-child {
    font-weight: 500 !important;
    color: #dc2626 !important;
}

/* Стили для строк учеников */
.participant-row {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-bottom: 1px solid #e0e7ff !important;
}

.participant-row td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #e0e7ff !important;
    font-size: 14px !important;
    color: #1e40af !important;
    font-weight: 500 !important;
    position: relative !important;
}

.participant-row td::before {
    content: '👤' !important;
    margin-right: 8px !important;
    font-size: 12px !important;
}

/* Стили для пустых строк участников */
.no-participants-row {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.no-participants-row td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 14px !important;
    color: #9ca3af !important;
    font-style: italic !important;
    text-align: center !important;
}

.no-participants-row td::before {
    content: '⚠️' !important;
    margin-right: 8px !important;
    font-size: 12px !important;
}

/* Разделитель между уроками */
.lesson-separator {
    height: 8px !important;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%) !important;
    border: none !important;
}

/* Адаптивность таблицы */
@media (max-width: 768px) {
    .statistics-table th,
    .statistics-table td {
        padding: 12px 8px !important;
        font-size: 13px !important;
    }
    
    .statistics-table th:nth-child(2),
    .statistics-table td:nth-child(2) {
        max-width: 120px !important;
        word-break: break-word !important;
    }
}

.terminal-alert-warning {
    background-color: #fefce8;
    border: 1px solid #fde047;
    color: #854d0e;
}

.terminal-alert-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}
/ *   C S S   V e r s i o n :   0 9 / 1 2 / 2 0 2 5   0 1 : 4 1 : 1 1   * / 
 
 / *   U p d a t e d :   0 9 / 1 2 / 2 0 2 5   0 1 : 4 9 : 1 5   * / 
 
 