
/* ========== ГЛОБАЛЬНЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
}

/* ========== ШАПКА ========== */
.header {
    position: sticky;
    top: 0;
    padding: 20px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.header__img {
    display: block;
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease;
}

.header__img:hover {
    transform: scale(1.05);
}

/* ========== ОСНОВНОЙ КОНТЕЙНЕР ========== */
.page {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1 1 auto;
    width: 100%;
}

/* ========== ЗАГОЛОВКИ ========== */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 30px;
    color: #ffffff;
    letter-spacing: 0.5px;
    border-left: 4px solid #ffc107;
    padding-left: 15px;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

/* ========== НАВИГАЦИЯ ========== */
.nav-link {
    color: #a0a0a0;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffc107;
    transform: translateY(-2px);
}

.nav-link.text-secondary {
    color: #ffc107 !important;
}

/* ========== АВТОРИЗАЦИЯ КНОПКИ ========== */
.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Кнопка Login */
.btn-login {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Кнопка Sign-up */
.btn-signup {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
}

/* ========== ФУТЕР ========== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.5);
}

/* ========== АДАПТИВ ========== */
@media (max-width: 768px) {
    .content {
        padding: 20px 15px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .auth-buttons {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }

    .btn-login,
    .btn-signup {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* ========== КНОПКА LOGOUT ========== */
.btn-logout {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    color: white;
    text-decoration: none;
}

.btn-logout:active {
    transform: translateY(0px);
}

/* ========== ИМЯ ПОЛЬЗОВАТЕЛЯ ========== */
.user-name {
    color: #ffc107;
    margin-right: 15px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.user-role {
    color: #ffd700;
    margin-left: 5px;
    font-size: 0.85em;
    font-style: italic;
}
/* ========== ОСНОВНЫЕ СТИЛИ ТАБЛИЦЫ ========== */
.custom-table {
    width: 100%;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-responsive {
    overflow-x: visible;
    background: transparent;
}

/* ========== ЗАГОЛОВКИ ========== */
.custom-table thead tr,
.custom-table thead th {
    border-top: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0f1720 0%, #1a252f 100%) !important;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-table thead th:first-child {
    border-top-left-radius: 16px;
}

.custom-table thead th:last-child {
    border-top-right-radius: 16px;
}

/* ========== ЯЧЕЙКИ ТАБЛИЦЫ ========== */
.custom-table tbody th,
.custom-table tbody td {
    color: #e0e0e0 !important;
    font-weight: 400;
    padding: 18px 20px;
    font-size: 14px;
}

.custom-table tbody th small,
.custom-table tbody td small {
    color: #a0a0a0 !important;
    font-weight: 300;
}

.custom-table tbody tr th,
.custom-table tbody tr td {
    background: rgba(30, 40, 50, 0.95) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Чередование строк (зебра) */
.custom-table tbody tr:nth-child(even) th,
.custom-table tbody tr:nth-child(even) td {
    background: rgba(25, 35, 45, 0.95) !important;
}

/* Скругление углов таблицы */
.custom-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

.custom-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

/* Убираем последнюю нижнюю границу */
.custom-table tbody tr:last-child td,
.custom-table tbody tr:last-child th {
    border-bottom: none !important;
}

/* ========== КНОПКИ ДЕЙСТВИЙ ========== */
.action-icons {
    white-space: nowrap;
}

.action-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 5px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
}

/* Жёлтый карандаш */
.edit-icon {
    background: #ffc107;
    color: #1a1a2e;
}

/* Красная мусорка */
.delete-icon {
    background: #dc3545;
    color: white;
}

/* ========== ВЕРТИКАЛЬНЫЕ РАЗДЕЛИТЕЛИ ========== */
.custom-table td,
.custom-table th {
    position: relative;
}

/* Разделители между всеми колонками, кроме последней */
.custom-table td:not(:last-child)::after,
.custom-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.25),
        transparent
    );
}

/* Горизонтальные разделители */
.custom-table tbody tr td,
.custom-table tbody tr th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.custom-table tbody tr:last-child td,
.custom-table tbody tr:last-child th {
    border-bottom: none !important;
}
.teacher-cell {
    display: flex;           /* Горизонтальное расположение */
    align-items: center;    /* Выравнивание по центру по вертикали */
    gap: 10px;              /* Расстояние между аватаркой и именем */
}

.teacher-avatar {
    width: 35px;            /* Ширина аватарки */
    height: 35px;           /* Высота аватарки */
    border-radius: 50%;     /* Круглая форма */
    object-fit: cover;      /* Обрезка под размер */
}