/* ===== ОБЩИЕ СТИЛИ ===== */
header {
    height: 7vh;
    padding: 3px 10px;
}

#teacher-name {
    display: block;
    width: fit-content;
    font-size: 1rem;
}

#week-info {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 101;
    max-height: 13vh;
}

#week-nav-left {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 7px;
}

#admin-label {
    display: none;
}

#notification {
    width: 90%;
    padding: 7px;
}

/* ===== НАВИГАЦИЯ ===== */
nav {
    text-align: right;
}

.week-navigation {
    width: 95%;
    align-items: start;
}

.nav-button {
    width: min-content;
}

.week-navigation h2 {
    font-size: 1rem;
    max-height: 100%;
    overflow: auto;
}

.admin-btn {
    text-indent: -9999px; /* Сдвигаем текст за экран */
    overflow: hidden;
    white-space: nowrap;

    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.3em;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    text-decoration: none;
    position: relative;
}

/* Показываем только иконку */
.admin-btn::before {
    content: "⚙️";
    text-indent: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== ОСНОВНАЯ ОБЛАСТЬ СКРОЛЛА ===== */
.scrollable-area {
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
    overscroll-behavior: none;
}

.scrollable-area::-webkit-scrollbar {
    display: none; /* Webkit браузеры */
}

/* ===== СТРУКТУРА РАСПИСАНИЯ ===== */
.schedule-container {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: min-content;
    width: 100%;
}

/* ===== ЗАГОЛОВКИ ТАБЛИЦЫ ===== */
#headers {
    /*display: grid;*/
    grid-template-columns: 60px repeat(7, minmax(80px, 1fr));
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--header-bg);
    border-bottom: 2px solid var(--border-color);
}

.time-header {
    position: sticky;
    left: 0;
    z-index: 40;
    background: var(--header-bg);
    padding: 10px 6px;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.day-header {
    flex: 1;
    padding: 6px 3px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    font-size: 0.8em;
}

.day-header > div:first-child {
    font-weight: 600;
}

.day-header .date {
    opacity: 0.8;
}

/* ===== ОБЛАСТЬ РАСПИСАНИЯ ===== */
.schedule-area {
    display: grid;
    grid-template-columns: 80px 1fr;
    min-width: min-content;
}

.time-column {
    display: flex;
    flex-direction: column;
    position: sticky;
    left: 0;
    z-index: 20;
    background: var(--bg);
    border-right: 1px solid var(--border-color);
    width: 80px;
}

.time-slot {
    height: 70px;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg);
    font-size: 0.8em;
    font-weight: 500;
}

#schedule {
    display: grid;
    grid-template-columns: repeat(7, minmax(220px, 1fr));
    min-width: min-content;
}

.week-day {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.hour-slot {
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg);
    position: relative;
    min-width: 0;
}

.lesson-info div {
    flex-direction: column-reverse;
    gap: 5px;
}

.input-group-with-btn {
    flex-direction: column;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-content {
    width: 90%;
}