﻿/* ==============================================
   Стили из старого site.css
   ============================================== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0; /* убираем старый margin-bottom */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f6fa;
}

main {
    flex: 1;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ==============================================
   Navbar
   ============================================== */
.navbar-brand {
    font-weight: 600;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

/* Кнопки */
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Навигационные вкладки */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Бордеры и тени */
.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

/* Кнопка принятия политики */
button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* ==============================================
   Футер
   ============================================== */
footer, .footer {
    background-color: #343a40;
    color: #fff;
    padding: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

    .footer a {
        color: #ffffff;
        text-decoration: none;
    }

.footer a:hover {
    text-decoration: underline;
}

.footer-contacts p {
    margin-bottom: 0.25rem;
}

/* Адаптивный футер: колонки под друг другом на мобилках */
@media (max-width: 767px) {
    .footer {
        text-align: center;
    }
}

/* ==============================================
   Структура страницы
   ============================================== */
.page-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.d-flex > main {
    flex: 1;
}

.admin-content {
    margin-left: 260px;
    padding: 20px;
}

.content-normal {
    padding-top: 80px;
}

/* ==============================================
   Админ-панель
   ============================================== */
.admin-sidebar {
    width: 250px;
    min-height: 100vh;
    background: #343a40;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 60px;
}

.admin-sidebar a {
    color: #ddd;
    display: block;
    padding: 12px 20px;
    text-decoration: none;
}

.admin-sidebar a:hover {
    background: #495057;
    color: #fff;
}

/* ==============================================
   Расписание
   ============================================== */
.schedule-fullwidth {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.schedule-table {
    width: 100%;
    table-layout: fixed;
}

.schedule-table td,
.schedule-table th {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}