/* Кнопки переключения недели */
.week-switch-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 18px;
}
.week_button {
    display: inline-block;
    padding: 8px 18px;
    background: #2B60A5;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37,99,235,0.10);
    transition: background 0.18s, transform 0.12s;
    border: none;
}
.current-button {
    background: #7d7c91;
}
.week_button:hover {
    background: #2B60A5;
    transform: scale(1.04);
}
.week_button:active {
    background: #ff9800;
    color: #fff;
    transform: scale(0.97);
}
.nav_buttons--teachers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.no-teachers {
    text-align: center;
    color: #ff9800;
    margin: 24px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Логотип */
.logo-ineb {
    display: block;
    margin: 0 auto 18px auto;
    max-width: 110px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(37,99,235,0.10));
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px 16px 24px 16px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(37,99,235,0.10);
    margin-top: 24px;
    position: relative;
}

.back_button {
    position: absolute;
    top: 14px;
    left: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
    box-shadow: 0 2px 8px rgba(37,99,235,0.07);
}
.back_button:hover {
    background: #e0eafc;
    box-shadow: 0 4px 16px rgba(37,99,235,0.13);
    transform: scale(1.07);
}
.back_button svg {
    display: block;
}
.back_button:active {
    background: #cfdef3;
    transform: scale(0.97);
}

h2 {
    text-align: center;
    color: #2d3a4b;
    margin-bottom: 32px;
    font-size: 2rem;
    letter-spacing: 1px;
}

.nav_buttons--groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.redirect_button {
    display: block;
    width: 100%;
    padding: 16px 0;
    background-color: #2B60A5;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37,99,235,0.13);
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
}
.redirect_button:active {
    background-color: #5E91D2;
    transform: scale(0.98);
}

/* --- Расписание --- */
.weekday-block {
    margin-bottom: 28px;
    border-radius: 20px;
    padding-bottom: 28px;
}
.weekday-block:nth-child(odd) {
    background-color: #2564ebcf;
    border: solid 3px #31a6ffd1;
}
.weekday-block:nth-child(even) {
    background-color: #ff9900d3;
    border: solid 3px #f88c49d4;
}

.weekday-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-align: center;
}
.pairs-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pair-card {
    background-color: #f4f7fb;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(37,99,235,0.08);
    padding: 14px 16px 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1.5px solid #2563eb22;
}
.pair-row {
    display: flex;
    align-items: center;
    font-size: 1rem;
}
.pair-row--top {
    justify-content: space-between;
    font-size: 0.98rem;
    color: #7DA2D2;
    margin-bottom: 2px;
}
.pair-row--middle {
    justify-content: space-between;
}
.pair-row--footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.97em;
    margin-top: 4px;
}
.pair-num {
    font-weight: 700;
    min-width: 22px;
    color: #4B8DBF;
}
.pair-teacher {
    color: #888;
    font-weight: 500;
}
.pair-students-group {
    color: #b0b0b0;
    font-size: 0.97em;
    font-weight: 400;
    margin-left: 12px;
    white-space: nowrap;
    align-self: flex-end;
}
.pair-subject {
    font-weight: 600;
    color: #2d3a4b;
    font-size: 1.05em;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
    word-break: break-word;
    width: 277px;
    max-width: 277px;
    
}
.pair-time-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 48px;
    gap: 2px;
}
.pair-time {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 0.97em;
    color: #2d3a4b;
    margin: 0 8px;
    width: 111px;
}
.pair-classroom {
    color: #38acff;
    font-size: 0.97em;
    font-weight: 500;
}


/* Сообщение об отсутствии групп */
.no-groups {
    text-align: center;
    color: #888;
    margin: 24px 0;
    font-size: 1.1rem;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    min-height: 100vh;
}





@media (max-width: 480px) {
    .container {
        padding: 16px 4px;
    }
    h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    .redirect_button {
        font-size: 1rem;
        padding: 12px 0;
    }
    .logo-ineb {
        max-width: 80px;
        margin-bottom: 12px;
    }
    .pair-card {
        padding: 10px 7px 8px 10px;
    }
    .pair-row {
        font-size: 0.97rem;
    }
        .nav_buttons--teachers {
        gap: 10px;
    }
}
