/* закрашивает подходящим цветом всю страницу */
/* Светлый режим */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #F5F5F5;
    overflow-x: hidden; /* предотвращает горизонтальный скролл */
    overflow-y: auto; /* вертикальный скролл только по необходимости */
}

/* Тёмный режим */
html.dark-mode, body.dark-mode {
    height: 100%;
    background-color: #121212;
    color: #ABB1B6;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* предотвращает горизонтальный скролл */
    overflow-y: auto; /* вертикальный скролл только по необходимости */
}

.field-group {
    margin-bottom: 20px; /* Отступ между группами */
    border-bottom: 1px solid #ddd; /* Разделительная линия */
    padding-bottom: 15px;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode p {
    color: #ABB1B6; /* Применение цвета к заголовкам и параграфам */
}



@media (max-width: 768px) {
    html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* предотвращает горизонтальный скролл */
    overflow-y: auto; /* вертикальный скролл только по необходимости */
}

    html.dark-mode, body.dark-mode {
        background-color: #121212; /* Цвет фона для темной темы */
        height: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden; /* предотвращает горизонтальный скролл */
        overflow-y: auto; /* вертикальный скролл только по необходимости */
    }
}

/* размер шрифта стартовая траница */
.title{
    font-size: 20px;
}

.dark-mode .title{
    color: #ABB1B6;
}

.dark-mode .label{
    color: #ABB1B6;
}

/* центрирование контейнера */
.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* вход в систему выравнивание */
.centered-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* кнопка вход выравнивание */
.centered-button-entr {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* кнопка регистрация выравнивание */
.centered-button-reg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.input.is-small {
    max-width: 400px;
}


/* изменение цвета кнопок в дарк моде */
.dark-mode .button.is-link {
    background-color: #6200ee;
    border-color: #6200ee;
}

/* стартовая картинка */
.start-img {
    margin: 40px 0; /* Отступы сверху и снизу */
}

/* боковое меню на основной странице */
.menu {
    padding: 1rem;
    background-color: #F0EFEF;
    height: auto;
    margin-top: 20px;
    border-top-left-radius: 0px; /* Верхний левый угол */
    border-top-right-radius: 15px; /* Верхний правый угол */
    border-bottom-right-radius: 15px; /* Нижний правый угол */
    border-bottom-left-radius: 0px; /* Нижний левый угол */
}

/* боковое меню на основной странице */
.dark-mode .menu {
    padding: 1rem;
    background-color: #191919;
    height: auto;
    border-top-left-radius: 0px; /* Верхний левый угол */
    border-top-right-radius: 15px; /* Верхний правый угол */
    border-bottom-right-radius: 15px; /* Нижний правый угол */
    border-bottom-left-radius: 0px; /* Нижний левый угол */
}

.columns {
    height: 100%; /* Устанавливаем высоту для .columns на 100% */
}

.menu-list a {
    color: #4a4a4a;
    padding: 0.5em 0.75em;
    display: block;
}

 /* Определение ключевых кадров для анимации сдвига вправо */
@keyframes slideRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(5px); /* Сдвиг на 10px вправо */
    }
}
/* Применение анимации при наведении */
.menu-list a:hover {
    background-color: #DFDDDD; /* Измените цвет фона на желаемый */
    animation: slideRight 0.6s forwards; /* Анимация сдвига вправо на 0.3 секунды */
    border-top-left-radius: 5px; /* Верхний левый угол */
    border-top-right-radius: 5px; /* Верхний правый угол */
    border-bottom-right-radius: 5px; /* Нижний правый угол */
    border-bottom-left-radius: 5px; /* Нижний левый угол */
}

.dark-mode .menu-list a{
    color: #ABB1B6;
}

.dark-mode .menu-list a:hover {
    background-color: #25282D; /* Измените цвет фона на желаемый */
    animation: slideRight 0.6s forwards; /* Анимация сдвига вправо на 0.3 секунды */
    border-top-left-radius: 5px; /* Верхний левый угол */
    border-top-right-radius: 5px; /* Верхний правый угол */
    border-bottom-right-radius: 5px; /* Нижний правый угол */
    border-bottom-left-radius: 5px; /* Нижний левый угол */
}

.dark-mode .menu {
    padding: 1rem;
}

/* медиазапрос для мобильных устройств */
@media (max-width: 768px) {
    .centered-content {
        height: auto; /* убрать фиксированную высоту для мобильных устройств */
        padding: 1rem; /* увеличить внутренний отступ для лучшего отображения на мобильных устройствах */
    }

    .button {
        width: 100%; /* сделать кнопки на всю ширину экрана */
    }
}

/* основная секция панели и контента */
.section {
    padding: 1rem 0;
}

/* основной контент */
.content {
    padding: 12px; /* Добавляем отступ */
    padding-left: 25px; /* Добавляем отступ слева */
}

.navbar-item-left {
    background: linear-gradient(90deg, #3564D2, #3E5F8A); /* Мягкий градиент */
    color: #E9E7E7; /* Темно-серый текст */
    padding: 12px 40px; /* Уменьшенные отступы */
    border-radius: 0 0 16px 0; /* Закругляем только правые края */
    text-decoration: none; /* Убираем подчеркивание */
    display: inline-block; /* Для лучшего отображения */
    transition: background-color 0.2s, transform 0.1s; /* Эффекты при наведении */
    font-weight: 500; /* Средняя жирность шрифта */
    font-size: 20px; /* Уменьшенный размер текста */
    width: 240px; /* Фиксированная ширина */
    font-family: 'Poppins', sans-serif;
}

.dark-mode .navbar-item-left {
    background: linear-gradient(90deg, #1E3D85, #283F5C); /* Мягкий градиент */
    color: #ABB1B6; /* Темно-серый текст */
    padding: 12px 40px; /* Уменьшенные отступы */
    border-radius: 0 0 10px 0; /* Закругляем только правые края */
    text-decoration: none; /* Убираем подчеркивание */
    display: inline-block; /* Для лучшего отображения */
    transition: background-color 0.2s, transform 0.1s; /* Эффекты при наведении */
    font-weight: 500; /* Средняя жирность шрифта */
    font-size: 20px; /* Уменьшенный размер текста */
    width: 240px; /* Фиксированная ширина */
    font-family: 'Poppins', sans-serif;
}

.navbar-item-left:hover {
    transform: scale(1.04); /* Легкое увеличение */
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .navbar-item-left {
        width: 100%; /* Ширина элемента адаптируется */
        padding: 10px 12px; /* Меняем отступы для мобильного вида */
    }
    .dark-mode .navbar-item-left {
        width: 100%; /* Ширина элемента адаптируется */
        padding: 10px 12px; /* Меняем отступы для мобильного вида */
    }
}

/* Фоновые цвета для светлой темы */
.navbar, .navbar-menu {
    background-color: #E9E7E7;
}

/* Темная тема: фон и текст */
.dark-mode .navbar,
.dark-mode .navbar-menu,
.dark-mode .card,
.dark-mode .navbar-item,
.dark-mode .navbar-dropdown,
.dark-mode .navbar-link {
    background-color: #1e1e1e !important;
    color: #ABB1B6 !important; /* Единый цвет текста для темной темы */
}

/* Убираем изменение цвета при наведении */
.dark-mode .navbar-item:hover,
.dark-mode .navbar-link:hover {
    color: #485FC7 !important;
    background-color: #2E2E2E !important;
}

/* Стили для активного состояния */
.navbar .navbar-item.is-active,
.navbar .navbar-link.is-active {
    color: #ABB1B6 !important; /* Единый цвет для текста в активном состоянии */
}

/* Стили для фокусного состояния */
.navbar .navbar-item:focus,
.navbar .navbar-link:focus,
.navbar .navbar-item:focus-visible,
.navbar .navbar-link:focus-visible {
    color: #ABB1B6 !important; /* Единый цвет текста */
    outline: 2px solid #ABB1B6 !important; /* Рамка для выделения фокуса */
    background-color: #1e1e1e !important; /* Цвет фона при фокусе */
}







/* Встроенные стили для уведомлений */
.notification-wrapper {
    position: relative;
    z-index: 1000;
}

.notification-dropdown .notification-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.notification-dropdown .notification-item:last-child {
    border-bottom: none !important; /* Увеличиваем приоритет */
}

.notification-button {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    font-size: 1.2rem;
    padding: 8px;
    color: #333;
    transition: color 0.3s ease;
}

.notification-badge {
    position: absolute;
    top: 19px;
    right: 6px;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    display: none;
}

.notification-dropdown {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2.5px 5px rgba(0, 0, 0, 0.3);
    width: 300px;
    z-index: 10000;
    padding: 10px;
    border-radius: 8px;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-65px) translateX(-70px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: 400px; /* Ограничение высоты */
    overflow-y: auto; /* Скролл при переполнении */
}

.notification-dropdown.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-55px) translateX(-70px) scale(1);
}

#notification-list {
    margin-bottom: 10px; /* Отступ перед кнопкой */
}

.button.is-fullwidth {
    display: block;
    text-align: center;
}

/* Обновленные стили для содержимого уведомления */
.notification-content {
    display: block; /* Убираем flex, время будет ниже текста */
}

.notification-text {
    margin-bottom: 5px; /* Отступ перед временем */
}

.notification-text p {
    margin: 5px 0 0 0; /* Отступ для сообщения */
    font-size: 0.8em; /* Размер текста сообщения */
}

.notification-content small {
    text-align: right !important;
    display: block; /* Время на новой строке */
    font-size: 0.6em; /* Уменьшаем размер времени */
    color: #888; /* Чуть светлее для контраста */
    line-height: 1.2; /* Улучшаем читаемость */
}

/* Темная тема */
.dark-mode .notification-button {
    color: #ABB1B6;
}

.dark-mode .notification-dropdown {
    background-color: #2d2d2d;
    border-color: #444;
    color: #fff;
    box-shadow: 0 2.5px 5px rgba(0, 0, 0, 0.5);
}

.dark-mode .notification-dropdown .notification-item {
    border-bottom-color: #444;
}

.dark-mode .notification-dropdown .button {
    background-color: #3a3a3a;
    color: #fff;
    border-color: #555;
}

.dark-mode .notification-dropdown .button:hover {
    background-color: #4a4a4a;
}

.dark-mode .notification-content small {
    color: #bbb; /* Цвет времени в темной теме */
}

.notification-icon-wrapper {
    display: flex;           /* Используем flexbox для горизонтального выравнивания */
    align-items: center;     /* Центрируем элементы по вертикали */
    gap: 5px;                /* Расстояние между иконкой и цифрой */
}



.notifications-list {
    margin-top: 20px;
}

.notification-item {
    padding: 10px; /* Увеличиваем внутренние отступы для текста */
    border-bottom: 1px solid #eee;
    border-radius: 8px; /* Закругляем края уведомления */
    margin-bottom: 5px; /* Отступ между уведомлениями */
}

.notification-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0; /* Убираем отступ у последнего элемента */
}

.notification-content {
    display: block;
    padding: 5px; /* Дополнительные отступы внутри содержимого */
}

.notification-text {
    margin-bottom: 5px;
}

.notification-item strong {
    color: #666;
    font-size: 1.1em;
}

.notification-text p {
    margin: 5px 0 0 0;
    font-size: 0.9em;
}

.notification-content small {
    display: block;
    font-size: 0.6em;
    color: #888;
    line-height: 1.2;
}

/* Стили для прочитанных и непрочитанных уведомлений */
.notification-item.is-unread {
    background-color: #f5f5f5; /* Светлый фон для непрочитанных */
    font-weight: bold; /* Жирный текст для выделения */
}

.notification-item.is-read {
    background-color: #fff; /* Обычный фон для прочитанных */
    opacity: 0.8; /* Чуть прозрачнее */
}

/* Темная тема */
.dark-mode .notification-item.is-unread {
    background-color: #3a3a3a;
}

.dark-mode .notification-item.is-read {
    background-color: #2d2d2d;
    opacity: 0.8;
}









/* настрока подменю + режим телефона */

.menu-list .has-submenu {
    position: relative;
}

/*автоматическое раскрытие списков*/
.menu-list .has-submenu:hover .submenu {
    display: block;
}

.dark-mode .menu-list .has-submenu .submenu{
    background: #191919;
}

.menu-list .submenu li {
    list-style: none;
}

.menu-list .submenu li a {
    display: block;
    padding: 8px;
    #ABB1B6-space: nowrap;
    text-decoration: none;
    color: #333;
}

.menu-list .submenu li a:hover {
    background: linear-gradient(145deg, #6bd673, #76B279); /* Градиент для кнопки */
    border: none;
    border-radius: 8px;
    padding: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dark-mode .menu-list .submenu li a:hover {
    background: linear-gradient(145deg, #474A51, #2F353B); /* Градиент для кнопки */
    border: none;
    border-radius: 8px;
    padding: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.menu-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu-list .has-submenu .submenu {
    display: none;
    padding-left: 20px;
}

.menu-list .has-submenu.active .submenu {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-icon {
    transition: transform 0.3s;
}

.has-submenu.active .submenu-icon {
    transform: rotate(180deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.menu-item {
    display: flex;
    align-items: center; /* Выровнять элементы по центру по вертикали */
    justify-content: space-between; /* Разместить элементы по краям */
    width: 100%; /* Ширина на всю строку */
}

.submenu-icon {
    margin-left: 8px; /* Отступ слева для небольшого расстояния между текстом и стрелочкой */
    font-size: 0.8em; /* Можно уменьшить размер стрелочки, чтобы она лучше смотрелась */
}

.has-submenu .menu-item {
    padding-right: 16px; /* Добавляем отступ справа для стрелочки */
}

.has-submenu .submenu {
    display: none;
}

.has-submenu.active .submenu {
    display: block;
}

/*цвет шрифта выпадающего меню*/
.dark-mode .has-submenu .submenu a{
    color: #ABB1B6;
}

/* Сдвиг только тех пунктов меню, которые находятся ниже "Обучающиеся" */
.menu-list .has-submenu:hover ~ .submenu-item {
    margin-top: 30px; /* Высота подменю */
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .menu-list .has-submenu .submenu {
        position: static;
        left: 0;
        top: 0;
        border: none;
        background: none;
    }

    .menu-list .has-submenu:hover .submenu {
        display: block;
    }

    .menu-list .submenu li a {
        padding-left: 20px; /* Отступ для подменю */
    }

    .menu-list .has-submenu:hover ~ .submenu-item {
        margin-top: 0;
    }
}

/* цвет полей ввода */

.dark-mode .input {
    background-color: #2B2D30;
}

.dark-mode .control .input {
    background-color: #2B2D30;
}

.dark-mode .input[type="text"].input {
    color: #ABB1B6;
}

.dark-mode input::placeholder {
    color: #888888; /* Цвет пояснения */
    opacity: 1; /* Полностью непрозрачный */
}

input:focus::placeholder {
    color: #aaaaaa; /* Цвет пояснения при фокусе */
}

.dark-mode input:focus::placeholder {
    color: #aaaaaa; /* Цвет пояснения при фокусе */
}

input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px white inset !important;
}

.dark-mode input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px #2B2D30 inset !important; /* Цвет фона */
    -webkit-text-fill-color: #ffffff !important; /* Цвет текста */
}

/*цвет textarea*/
.dark-mode .textarea{
    background-color: #2B2D30;
}

.dark-mode .textarea {
    color: #ABB1B6;
}

textarea:focus::placeholder {
    color: #aaaaaa; /* Цвет пояснения при фокусе */
}

.dark-mode textarea:focus::placeholder {
    color: #aaaaaa; /* Цвет пояснения при фокусе */
}

textarea:-webkit-autofill {
    box-shadow: 0 0 0px 1000px #ABB1B6 inset !important;
}

.dark-mode textarea:-webkit-autofill {
    box-shadow: 0 0 0px 1000px #2B2D30 inset !important; /* Цвет фона */
    -webkit-text-fill-color: #ffffff !important; /* Цвет текста */
}

.dark-mode textarea::placeholder {
    color: #888888; /* Цвет пояснения */
    opacity: 1; /* Полностью непрозрачный */
}

/*цвет input-date*/
/* Общий стиль для dark-mode */
.dark-mode input[type="date"] {
    background-color: #2B2D30;
    color: #ABB1B6;
}

/*цвет input-date*/
/* Общий стиль для dark-mode */
.dark-mode input[type="datetime-local"] {
    background-color: #2B2D30;
    color: #ABB1B6;
}

/* Стиль для контейнера с классом .control */
.dark-mode .control input[type="date"] {
    background-color: #2B2D30;
}

.control {
    color: #ABB1B1;
}

/* Стиль текста */
.dark-mode input[type="date"] {
    color: #ABB1B6;
}

/* Стиль для placeholder */
.dark-mode input[type="date"]::placeholder {
    color: #888888; /* Цвет плейсхолдера */
    opacity: 1; /* Полностью непрозрачный */
}

/* Стиль для placeholder при фокусе */
input[type="date"]:focus::placeholder {
    color: #aaaaaa; /* Цвет плейсхолдера при фокусе */
}

/* Стиль для placeholder при фокусе в dark-mode */
.dark-mode input[type="date"]:focus::placeholder {
    color: #aaaaaa; /* Цвет плейсхолдера при фокусе */
}

/* Стиль для автозаполнения */
input[type="date"]:-webkit-autofill {
    box-shadow: 0 0 0px 1000px #ABB1B6 inset !important;
}

/* Стиль для автозаполнения в dark-mode */
.dark-mode input[type="date"]:-webkit-autofill {
    box-shadow: 0 0 0px 1000px #2B2D30 inset !important; /* Цвет фона */
    -webkit-text-fill-color: #ffffff !important; /* Цвет текста */
}


/*цвет input-time*/
/* Общий стиль для dark-mode */
.dark-mode input[type="time"] {
    background-color: #2B2D30;
    color: #ABB1B6;
}

/* Стиль для контейнера с классом .control */
.dark-mode .control input[type="time"] {
    background-color: #2B2D30;
}

.control {
    color: #ABB1B1;
}

/* Стиль текста */
.dark-mode input[type="time"] {
    color: #ABB1B6;
}

/* Стиль для placeholder */
.dark-mode input[type="time"]::placeholder {
    color: #888888; /* Цвет плейсхолдера */
    opacity: 1; /* Полностью непрозрачный */
}

/* Стиль для placeholder при фокусе */
input[type="time"]:focus::placeholder {
    color: #aaaaaa; /* Цвет плейсхолдера при фокусе */
}

/* Стиль для placeholder при фокусе в dark-mode */
.dark-mode input[type="time"]:focus::placeholder {
    color: #aaaaaa; /* Цвет плейсхолдера при фокусе */
}

/* Стиль для автозаполнения */
input[type="time"]:-webkit-autofill {
    box-shadow: 0 0 0px 1000px #ABB1B6 inset !important;
}

/* Стиль для автозаполнения в dark-mode */
.dark-mode input[type="time"]:-webkit-autofill {
    box-shadow: 0 0 0px 1000px #2B2D30 inset !important; /* Цвет фона */
    -webkit-text-fill-color: #ffffff !important; /* Цвет текста */
}


/* кнопки в системе */
/* Basic button styling */
.btn-custom-orange {
    background-color: #FFB841; /* Custom orange background */
    color: white; /* Text color */
    border: none; /* Remove default border */
    border-radius: 6px; /* Rounded corners */
    padding: 3.4px 8px; /* Padding inside the button */
    font-size: 14px; /* Font size */
    font-weight: bold; /* Bold  text */
    text-align: center; /* Center align text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Make it fit content */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
}

/* Basic button styling */
.dark-mode .btn-custom-orange {
    background-color: #BF7903; /* Custom orange background */
    color: black; /* Text color */
    border: none; /* Remove default border */
    border-radius: 6px; /* Rounded corners */
    padding: 3.4px 8px; /* Padding inside the button */
    font-size: 14px; /* Font size */
    font-weight: bold; /* Bold  text */
    text-align: center; /* Center align text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Make it fit content */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
}

.btn-custom-orange:hover {
    transform: scale(1.05); /* Небольшое увеличение */
}

/* кнопки в системе */
/* Basic button styling */
.btn-custom-blue {
    background-color: #045FA9; /* Custom orange background */
    color: white; /* Text color */
    border: none; /* Remove default border */
    border-radius: 6px; /* Rounded corners */
    padding: 3.4px 8px; /* Padding inside the button */
    font-size: 14px; /* Font size */
    font-weight: bold; /* Bold  text */
    text-align: center; /* Center align text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Make it fit content */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
}

/* Basic button styling */
.dark-mode .btn-custom-blue {
    background-color: #045FA9; /* Custom orange background */
    color: black; /* Text color */
    border: none; /* Remove default border */
    border-radius: 6px; /* Rounded corners */
    padding: 3.4px 8px; /* Padding inside the button */
    font-size: 14px; /* Font size */
    font-weight: bold; /* Bold  text */
    text-align: center; /* Center align text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Make it fit content */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
}

.btn-custom-blue:hover {
    transform: scale(1.05); /* Небольшое увеличение */
}

.btn-custom-moon {
    background-color: #C9CCCF;
    color: #33699E;
    border: none;
    border-radius: 6px;
    padding: 15x 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-moon {
    background-color: #2F353B;
    color: yellow;
    border: none;
    border-radius: 6px;
    padding: 15x 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-moon:hover {
    transform: scale(1.25); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
.btn-custom-moon:active {
    transform: scale(1.05); /* Уменьшение кнопки при нажатии */
}


.btn-custom-pdf {
    background-color: #B5251B;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    margin-left: 6px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-pdf {
    background-color: #7D1C1C;
    color: #ABB1B6;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    margin-left: 6px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-pdf:hover {
    transform: scale(0.96); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
.btn-custom-pdf:active {
    transform: scale(0.93); /* Уменьшение кнопки при нажатии */
}

.btn-custom-excel {
    background-color: #367653;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    margin-left: 6px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-excel {
    background-color: #29563E;
    color: #ABB1B6;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    margin-left: 6px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-excel:hover {
    transform: scale(0.96); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
.btn-custom-excel:active {
    transform: scale(0.93); /* Уменьшение кнопки при нажатии */
}


.btn-custom-green {
    background-color: #8CCB5E;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4.8px 9px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-green {
    background-color: #61983A;
    color: black;
    border: none;
    border-radius: 6px;
    padding: 4.8px 9px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-green:hover {
    transform: scale(1.05); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
.btn-custom-green:active {
    transform: scale(0.95); /* Уменьшение кнопки при нажатии */
}

.btn-custom-login {
    background-color: #045FA9;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    margin: 0 auto;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-login {
    background-color: #002F55;
    color: #ABB1B6;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    margin: 0 auto;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-login:hover {
    transform: scale(0.96); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
.btn-custom-login:active {
    transform: scale(0.93); /* Уменьшение кнопки при нажатии */
}

.btn-custom-action {
    background-color: #045FA9;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8.8px 10px;
    font-size: 14px;
    font-weight: bold;
    margin-left: 6px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-action {
    background-color: #002F55;
    color: #ABB1B6;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    font-size: 14px;
    font-weight: bold;
    margin-left: 6px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-action:hover {
    transform: scale(0.96); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
.btn-custom-action:active {
    transform: scale(0.93); /* Уменьшение кнопки при нажатии */
}

.btn-custom-action-orange {
    background-color: #FFB841;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8.8px 10px;
    font-size: 14px;
    font-weight: bold;
    margin-left: 6px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-action-orange {
    background-color: #BF7903;
    color: #ABB1B6;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    font-size: 14px;
    font-weight: bold;
    margin-left: 6px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-action-orange:hover {
    transform: scale(0.96); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
.btn-custom-action-orange:active {
    transform: scale(0.93); /* Уменьшение кнопки при нажатии */
}

.btn-custom-action-green {
    background-color: #8CCB5E;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-action-green {
    background-color: #61983A;
    color: #ABB1B6;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-action-green:hover {
    transform: scale(1.05); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
.btn-custom-action-green:active {
    transform: scale(0.95); /* Уменьшение кнопки при нажатии */
}

.btn-custom-delete-role {
background-color: #E32636;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-left: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-delete-role {
   background-color: #A41E29;
    color: #ABB1B6;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-left: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-delete-role:hover {
    transform: scale(0.96); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
btn-custom-delete-role:active {
    transform: scale(0.93); /* Уменьшение кнопки при нажатии */
}


.btn-custom-red-delete-lms {
    background-color: #E32636;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8.8px 10px;
    font-size: 14px;
    font-weight: bold;
    margin-left: 6px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-red-delete-lms {
    background-color: #A41E29;
    color: #ABB1B6;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    font-size: 14px;
    font-weight: bold;
    margin-left: 6px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-red-delete-lms:hover {
    transform: scale(0.96); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
.btn-custom-red-delete-lms:active {
    transform: scale(0.93); /* Уменьшение кнопки при нажатии */
}


.btn-custom-red {
    background-color: #E32636;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4.8px 9px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-red {
    background-color: #A41E29;
    color: black;
    border: none;
    border-radius: 6px;
    padding: 4.8px 9px
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-red:hover {
    transform: scale(1.05); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
.btn-custom-red:active {
    transform: scale(0.95); /* Уменьшение кнопки при нажатии */
}

.btn-custom-back {
    background-color: #E9E7E7;
    color: #1C1C1C;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-back {
    background-color: #1E1E1E;
    color: #ABB1B6;
    border: 1;
    border-radius: 6px;
    padding: 8.8px 9px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-back:hover {
    transform: scale(0.96); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
.btn-custom-back:active {
    transform: scale(0.93); /* Уменьшение кнопки при нажатии */
}

.btn-custom-upload {
    background-color: #30BA8F;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    margin-left: 6px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-upload {
    background-color: #1D906C;
    color: #ABB1B6;
    border: none;
    border-radius: 6px;
    padding: 8.8px 9px;
    margin-left: 6px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-upload:hover {
    transform: scale(0.96); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
.btn-custom-upload:active {
    transform: scale(0.93); /* Уменьшение кнопки при нажатии */
}



.btn-custom-search {
    background-color: #6495ED;
    color: white;
    border: none;
    border-radius: 3px;
    margin: 0px 0px 0px 2px;
    padding: 9.8px 13px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

.dark-mode .btn-custom-search {
    background-color: #14459F;
    color: #ABB1B6;
    border: none;
    border-radius: 3px;
    margin: 0px 0px 0px 2px;
    padding: 9.8px 13px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Плавный переход для цвета фона и трансформаций */
}

/* Эффект при наведении */
.btn-custom-search:hover {
    transform: scale(1.05); /* Увеличение размера кнопки */
}

/* Эффект при нажатии */
.btn-custom-search:active {
    transform: scale(1.10); /* Уменьшение кнопки при нажатии */
}


/*настройка таблиц*/

.dark-mode .box{
    background: #2F353B;
}

.dark-mode .subtitle {
    color: #ABB1B6;
}

.table{
    background: #F5F5F5;
    margin-top: 15px;
}

.dark-mode .table{
    background: #121212;
    margin-top: 15px;
    color:#ABB1B6;
}

.dark-mode .table th {
    color: #ABB1B6;
}

/*сетка таблиц*/
body.dark-mode .table tbody tr {
    background-color: #2b2b2b !important; /* Ensure dark background */
    color: #ABB1B6 !important; /* Ensure white text */
}

body.dark-mode .table tbody tr:nth-child(even) {
    background-color: #1E1E1E !important; /* Slightly lighter dark gray for even rows */
    color: #ABB1B6 !important;
}

body.dark-mode .table tbody tr:nth-child(odd) {
    background-color: #121212 !important; /* Original dark gray for odd rows */
    color: #ABB1B6 !important;
}

.input-date {
            max-width: 150px; /* Устанавливает максимальную ширину */
            width: 100%;      /* Позволяет полю растягиваться на всю доступную ширину до max-width */
}

/*селектор выбора метода статистики*/
.dark-mode select[name="statistics_id"] {
    background-color: #2B2D30;
    color: #ABB1B6;
}

/*селектор выбора категории*/
.dark-mode select[name="category_id"] {
    background-color: #2B2D30;
    color: #ABB1B6;
}

/*селектор выбора курса*/
.dark-mode select[name="course_id"] {
    background-color: #2B2D30;
    color: #ABB1B6;
}

/*селектор выбора роли*/
.dark-mode select[name="role_id"] {
    background-color: #2B2D30;
    color: #ABB1B6;
}

/*селектор выбора роли*/
.dark-mode select[name="workplace"] {
    background-color: #2B2D30;
    color: #ABB1B6;
}

/*селектор выбора роли*/
.dark-mode select[name="statistics_type"] {
    background-color: #2B2D30;
    color: #ABB1B6;
}

/*селектор выбора роли*/
.dark-mode select[name="year"] {
    background-color: #2B2D30;
    color: #ABB1B6;
}

/*селектор выбора роли*/
.dark-mode select[name="period"] {
    background-color: #2B2D30;
    color: #ABB1B6;
}

/*стили для карточек*/
/* Стили для контейнера с карточками */
.card-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Позволяет карточкам переноситься на новую строку */
    margin-top: 20px;
}

/* Общие стили для карточек с градиентом */
.card {
    background: linear-gradient(145deg, #F3F1F1, #E9E7E7); /* Светлый градиент */
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 320px;
    padding: 25px;
    position: relative;
}

/* Эффект парения и плавного увеличения */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}
/* Центрирование содержимого карточек */
.card-content {
    display: flex;
    flex-direction: column; /* Элементы расположены вертикально */
    align-items: center; /* Выравнивание по центру по горизонтали */
    justify-content: space-between; /* Равномерное распределение элементов */
    text-align: center; /* Текст по центру */
    height: 100%; /* Карточка будет растягиваться */
}
.dark-mode .card {
    background: linear-gradient(145deg, #2e2e2e, #1a1a1a); /* Темный градиент */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1); /* Легкая тень для текста */
}

.dark-mode .card-title {
    color: #ABABAB;
}

/* Текст карточки */
.card-text {
    font-size: 16px;
    color: #555;
}

.dark-mode .card-text {
    color: #d0d0d0;
}

/* Градиентный фон для кнопки */
.card-button {
    background: linear-gradient(145deg, #6bd673, #58a05c); /* Градиент для кнопки */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

/* Градиентный фон для кнопки */
.dark-mode .card-button {
    background: linear-gradient(145deg, #6bd673, #58a05c); /* Градиент для кнопки */
    color: #D6D6D6;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

/* Дополнительная анимация для кнопки */
.card-button:hover {
    transform: scale(1.08); /* Увеличение размера кнопки при наведении */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.dark-mode .card-button {
    background: linear-gradient(145deg, #3a8c44, #2f6f37); /* Более насыщенный темный градиент */
}

.dark-mode .card-button:hover {
    background-color: #32773a;
}

/* Медиа-запрос для адаптации карточек на мобильных устройствах */
@media (max-width: 768px) {
    .card {
        width: 100%; /* Карточка занимает всю ширину на мобильных */
        margin-bottom: 20px; /* Отступ снизу для каждой карточки */
    }
}

/*цвет отладочных сообщений*/
.flash-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-container {
    display: flex;
    gap: 5px; /* Расстояние между кнопками */
}

.section {
    margin: 1px;
}


/* Styles for smaller switches */
.switch {
    position: relative;
    display: inline-block;
    width: 40px; /* Width of the toggle switch */
    height: 20px; /* Height of the toggle switch */
    vertical-align: middle; /* Align with middle of the text */
    margin-right: 10px; /* Space between switch and text */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px; /* Reduced radius */
}

.dark-mode .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2B2D30;
    transition: .4s;
    border-radius: 20px; /* Reduced radius */
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px; /* Height of the toggle button */
    width: 16px; /* Width of the toggle button */
    left: 2px;
    bottom: 2px; /* Adjusted bottom to align vertically */
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745; /* Color when checked */
}

input:focus + .slider {
    box-shadow: 0 0 1px #28a745;
}

input:checked + .slider:before {
    transform: translateX(20px); /* Adjusted translateX for checked state */
}

/* Additional styles for text */
.toggle-label {
    vertical-align: middle; /* Align the text vertically in the middle */
}

.dark-mode .box {
    background-color: #1E1E1E;
}

.dark-mode .notification p{
    color: #121212;
}

/*запрет скролинка заголовков таблиц*/
.table thead th {
    position: sticky;
    top: 0; /* Зафиксировать заголовки вверху */
    background-color: #E9E7E7; /* Установите цвет фона для видимости */
    z-index: 10; /* Обеспечивает, что заголовки будут поверх содержимого */
}

/*запрет скролинка заголовков таблиц*/
.dark-mode .table thead th {
    position: sticky;
    top: 0; /* Зафиксировать заголовки вверху */
    background-color: #303030; /* Установите цвет фона для видимости */
    z-index: 10; /* Обеспечивает, что заголовки будут поверх содержимого */
}

.table-container-scroll-none {
    height: 80vh;
    overflow-y: scroll; /* Убедитесь, что overflow-y: scroll для возможности прокрутки */
    scrollbar-width: none; /* Для Firefox */
}

.table-container-scroll-none::-webkit-scrollbar {
    display: none; /* Для Chrome, Safari и Edge */
}

.table-container-button-scroll-none{
    height: -100vh;
    overflow-y: scroll; /* Убедитесь, что overflow-y: scroll для возможности прокрутки */
    scrollbar-width: none; /* Для Firefox */
    font-size: 14px; /* Уменьшенный шрифт */
}

.table-container-button-scroll-none::-webkit-scrollbar {
    display: none; /* Для Chrome, Safari и Edge */
}


.table-container {
    height: 80vh;
    overflow-y: scroll; /* Убедитесь, что overflow-y: scroll для возможности прокрутки */
    margin-top: -20px;
    font-size: 14px; /* Уменьшенный шрифт */
}

.table-container-student {
    height: 80vh;
    overflow-y: scroll; /* Убедитесь, что overflow-y: scroll для возможности прокрутки */
    margin-top: 5px;
    font-size: 14px; /* Уменьшенный шрифт */
}

.table-container-org {
    height: 80vh;
    overflow-y: scroll; /* Убедитесь, что overflow-y: scroll для возможности прокрутки */
    margin-top: -10px;
    font-size: 14px; /* Уменьшенный шрифт */
}

.table-container-2 {
    font-size: 14px; /* Уменьшенный шрифт */
}

.table-container::-webkit-scrollbar {

}

.table-container-button{
    height: -100vh;
    overflow-y: scroll; /* Убедитесь, что overflow-y: scroll для возможности прокрутки */
    font-size: 14px; /* Уменьшенный шрифт */
}

.table-container-button::-webkit-scrollbar {

}

.search-input {
    width: 400px; /* Ширина конкретного поля */
}

.file {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file {
    display: inline-block;
    padding-top: 0px;
}

.form-container {
    display: flex;
    flex-wrap: nowrap;
}

.section {
    margin: 0; /* Убираем отступы, чтобы кнопки шли подряд */
}

button {
    white-space: nowrap; /* Предотвращает перенос текста на кнопке */
}











/* Общие стили для карточек с градиентом для шаблона visitor */
.card-visitor-main {
    background: linear-gradient(145deg, #F3F1F1, #E9E7E7); /* Светлый градиент */
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 220px;
    padding: 10px;
    position: relative;
    border: 1px solid #3D5F8E; /* Серый цвет границы */
}

/* Эффект парения и плавного увеличения */
.card-visitor-main:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode .card-visitor-main {
    background: linear-gradient(145deg, #2e2e2e, #1a1a1a); /* Темный градиент */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}




/* Общие стили для карточек с градиентом для шаблона visitor */
.card-visitor {
    background: linear-gradient(145deg, #F3F1F1, #E9E7E7); /* Светлый градиент */
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 220px;
    padding: 10px;
    position: relative;
}


/* Эффект парения и плавного увеличения */
.card-visitor:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}
/* Центрирование содержимого карточек */
.card-content {
    display: flex;
    flex-direction: column; /* Элементы расположены вертикально */
    align-items: center; /* Выравнивание по центру по горизонтали */
    justify-content: space-between; /* Равномерное распределение элементов */
    text-align: center; /* Текст по центру */
    height: 100%; /* Карточка будет растягиваться */
}
.dark-mode .card-visitor {
    background: linear-gradient(145deg, #2e2e2e, #1a1a1a); /* Темный градиент */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1); /* Легкая тень для текста */
}

.dark-mode .card-title {
    color: #ABABAB;
}

/* Текст карточки */
.card-text {
    font-size: 16px;
    color: #555;
}

.dark-mode .card-text {
    color: #d0d0d0;
}

/* Градиентный фон для кнопки */
.card-button-blue {
    background: linear-gradient(145deg, #3664CD, #3D5F8E); /* Градиент для кнопки */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

/* Градиентный фон для кнопки */
.dark-mode .card-button-blue {
    background: linear-gradient(145deg, #3664CD, #3D5F8E); /* Градиент для кнопки */
    color: #D6D6D6;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

/* Дополнительная анимация для кнопки */
.card-button-blue:hover {
    transform: scale(1.08); /* Увеличение размера кнопки при наведении */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.dark-mode .card-button-blue {
    background: linear-gradient(145deg, #245AD6, #29548E); /* Более насыщенный темный градиент */
}

.dark-mode .card-button-blue:hover {
    background-color: #32773a;
}

/* Медиа-запрос для адаптации карточек на мобильных устройствах */
@media (max-width: 768px) {
    .card-visitor {
        width: 100%; /* Карточка занимает всю ширину на мобильных */
        margin-bottom: 20px; /* Отступ снизу для каждой карточки */
    }
    .card-visitor-main {
        width: 100%; /* Карточка занимает всю ширину на мобильных */
        margin-bottom: 20px; /* Отступ снизу для каждой карточки */
    }
}


.chart-container {
    margin-top: 20px; /* Отступ сверху */
    padding: 20px; /* Внутренний отступ */
    border: 1px solid #ddd; /* Граница */
    border-radius: 8px; /* Скругление углов */
    background-color: #f9f9f9; /* Фон */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень */
    max-width: calc(100% - 10px); /* Ограничение ширины с учетом отступа справа */
    max-height: 400px; /* Ограничение высоты */
}

.chart-container canvas {
    max-height: 300px; /* Высота самого графика */
    max-width: 100%; /* Адаптивная ширина */
}

/* Темная тема для текста и сетки */
.dark-mode .chart-container {
    margin-top: 20px; /* Отступ сверху */
    padding: 20px; /* Внутренний отступ */
    border: 1px solid #555; /* Темная граница */
    border-radius: 8px; /* Скругление углов */
    background-color: #E9E7E7; /* Темный фон */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4); /* Глубокая тень */
    max-width: 100%; /* Ограничение ширины */
    max-height: 400px; /* Ограничение высоты */
}

.dark-mode .chart-container canvas {
    max-height: 300px; /* Высота графика */
    max-width: 100%; /* Адаптивная ширина */
}

/* Сеточка и текст осей в темной теме */
.dark-mode .chart-container canvas {
    filter: brightness(0.9); /* Меньшая яркость графика, чтобы линии были серыми */
}

/* Темная тема для текста */
.dark-mode body {
    background-color: #121212; /* Фон всего приложения */
    color: #ffffff; /* Белый текст для всего приложения */
}

.dark-mode .btn-custom-back {
    color: #ffffff; /* Белый текст на кнопке */
    background-color: #444; /* Темный фон кнопки */
    border: 1px solid #555; /* Граница кнопки */
}

.dark-mode .btn-custom-back:hover {
    background-color: #555; /* Темный фон при наведении */
    color: #ffffff; /* Белый текст при наведении */
}




/* Стиль для select в светлой теме */
select {
    background-color: #ffffff; /* Белый фон */
    color: #000000; /* Черный цвет текста */
    border: 1px solid #ccc; /* Светлая рамка */
}

select option {
    background-color: #ffffff; /* Белый фон для элементов */
    color: #000000; /* Черный цвет текста */
}

/* Темная тема для select */
.dark-mode select {
    background-color: #333333; /* Темный фон */
    color: #cccccc; /* Светлый цвет текста */
    border: 1px solid #555; /* Темная рамка */
}

.dark-mode select option {
    background-color: #333333; /* Темный фон для элементов */
    color: #cccccc; /* Светлый цвет текста */
}

/* При наведении на элементы в темной теме */
.dark-mode select option:hover {
    background-color: #444444; /* Более темный фон при наведении */
}

.is-hidden {
    display: none;
}


/*Пагинация*/

.pagination-previous, .pagination-next {
    background-color: #045FA9;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: flex; /* Центрирование */
    align-items: center; /* Выравнивание по вертикали */
    justify-content: center; /* Выравнивание по горизонтали */
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    min-width: 120px; /* Минимальная ширина для одинакового размера кнопок */
}

.pagination-previous:hover, .pagination-next:hover {
    background-color: #034F8B;
    transform: scale(1.05);
}

.pagination-previous:disabled, .pagination-next:disabled {
    background-color: #A0A0A0;
    cursor: not-allowed;
    transform: none;
}

.pagination-list .pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #045FA9;
    border: 1px solid #045FA9;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    height: 36px; /* Делаем все кнопки одинаковой высоты */
    min-width: 36px; /* Даем минимальную ширину для выравнивания */
    box-sizing: border-box; /* Учитываем границы и отступы в общей ширине */
}

.pagination-list {
    display: flex;
    align-items: center; /* Выравнивание всех кнопок по центру */
    gap: 5px; /* Отступ между элементами */
    padding: 0; /* Убираем возможные отступы у списка */
    margin: 0; /* Убираем возможные отступы у списка */
}

.pagination-list li {
    list-style: none; /* Убираем маркеры списка */
    margin: 0; /* Убираем лишние внешние отступы */
    padding: 0; /* Убираем внутренние отступы */
}

.pagination-list .pagination-link:hover {
    background-color: #045FA9;
    color: white;
}

.pagination-list .pagination-link.is-current {
    background-color: #034F8B;
    color: white;
    font-weight: bold;
    border: 1px solid #034F8B;
}

/* Дополнительно можно убрать лишние отступы у самого инпута */
.file-input {
    display: none; /* Скрываем стандартный input */
}

/* Вставляем Flexbox для выравнивания */
.is-inline-flex {
    display: inline-flex;
    align-items: center;  /* Центрируем по вертикали */
}


/* Увеличиваем специфичность или добавляем !important */
p.group-stats, p.group-stats strong {
    color: #ABB1B6 !important;
}
