body {
    margin: 0;
    font-family: 'Arial', sans-serif ;
    background-color: #2a3b4d;
    display: block; /* Убедитесь, что body не ограничен flex-контейнером */
    min-height: 100vh;
    /*height: 100%;*/
    justify-content: center;
    align-items: center;
    height: 100vh; /* Высота на весь экран */
    /*overflow: hidden; !* Убираем прокрутку *!*/
}

img{
    border-radius: 15px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    /*pointer-events: auto;*/
}

a{
    text-decoration: none;
}
.modal {
    background: linear-gradient(145deg, #2a3b4d, #344b65 0%);
    border-radius: 25px;
    padding: 20px;
    width: 95%;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 6px solid #1c1f24;
    position: relative;
    overflow-y: auto; /* Разрешаем прокрутку внутри модального окна */
    max-height: 85vh; /* Ограничиваем высоту, чтобы модальное окно не перекрывало всю высоту экрана */
    overflow-x: hidden; /* Отключаем горизонтальную прокрутку */
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 70vh; /* Ограничиваем высоту содержимого модального окна */
    /*overflow-y: auto; !* Разрешаем прокрутку содержимого *!*/
    /*overflow-x: hidden; !* Отключаем горизонтальную прокрутку *!*/
}
/* Добавляем стили для кнопки открытия модального окна */
.open-modal-btn {
    margin: 20px;
    background: linear-gradient(145deg, #4b6b89, #364d63); /* Современный градиент */
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.open-modal-btn:hover {
    background: linear-gradient(145deg, #577b9b, #3c5a73);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 3px 6px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.open-modal-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}


.modal-header {
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 24px;
    color: #ffffff;
    background: #1e2a3a;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3), inset -2px -2px 5px rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-header h2 {
    margin: 0;
    padding: 0;
}

.modal-header img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    background: transparent;
    border: none;
}

.close-btn:hover {
    color: #ff4c4c;
}

.field-group {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    text-align: left;
    width:98%; /* Убедимся, что блок занимает всю ширину */
    background: #3a4c63;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.5), inset -3px -3px 6px rgba(255, 255, 255, 0.1);
}

.field-group label {
    display: block;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 12px;
    color: #ffffff;
    background: #2e3f55 right 10px center;
    border: none;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}


.custom-select:hover {
    background: #3b4e6b;
}

.custom-select option{
    background: #f0f0f0;
}

.custom-select:focus {
    outline: none;
    background: #3b4e6b;
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.3);
}

.custom-select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #ffffff;
    font-size: 12px;
}

.input-number,
.dropdown-selected,
.input-file {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #2e3f55;
    color: white;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-number::placeholder,
.input-file::placeholder {
    color: #c5c7cb;
    opacity: 0.8;
}

.input-number:focus,
.dropdown-selected:hover,
.input-file:hover {
    outline: none;
    background: #3b4e6b;
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.3);
}

.input-file {
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.input-file:hover {
    background: #3b4e6b;
}

/* Дата и время */
.pika-single {
    background-color: #2a3b4d;
    /*color: #ffffff;*/
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.pika-label{
    background-color: #2a3b4d;
    color: white;

}
.pika-lendar th {
    /*color: #ffffff;*/
}

.pika-button:hover {
    background-color: white;
    color: black;
}
.pika-button{
    background-color: #2a3b4d;
    color: white;
}

.timepicker {
    z-index: 9999; /* Убедитесь, что этот z-index выше, чем у модального окна */
    top: 50px; /* Подкорректируйте отступ сверху */
    left: 0; /* Отрегулируйте по необходимости */
    background-color: #2a3b4d;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 14px;
}
.ui-timepicker-standard{
    background-color: #2a3b4d;

}

.timepicker:focus {
    outline: none;
    background-color: #344b65;
}

/* Выпадающий список Timepicker */
.ui-timepicker-list {
    background-color: #2a3b4d;
    color: #ffffff;
    border: 1px solid #1c1f24;
    border-radius: 8px;
    padding: 10px;
    z-index: 10001; /* Увеличиваем z-index для отображения поверх модального окна */
}

.ui-timepicker-list li {
    padding: 8px;
    transition: background-color 0.3s ease;
}

.ui-timepicker-standard a{
    color: white;
}

.ui-timepicker-list li:hover {
    background-color: #3a4c63;
    cursor: pointer;
}

/* Контейнер для списка времени */
.ui-timepicker-wrapper {
    z-index: 10001; /* Устанавливаем высокий z-index для контейнера */
    position: absolute;
}
/* Основные стили для загрузки файла */
.custom-file-upload {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: #2e3f55;
    border-radius: 8px;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    color: #ffffff;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.custom-file-upload span {
    pointer-events: none;
    color: #c5c7cb;
    font-size: 14px;
    transition: color 0.3s;
}

/* Стили для области предпросмотра */
.preview-container {
    margin-top: 10px;
    padding: 10px;
    background: #1e2a3a;
    border-radius: 8px;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-container img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 5px;
    object-fit: cover;
}

/* Стили для кастомного выпадающего списка */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-options {
    display: none;
    position: absolute;
    background: #2e3f55;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
    margin-top: 5px;
}

.dropdown-option {
    padding: 10px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dropdown-option:hover {
    background: #3b4e6b;
}

.show {
    display: block;
}

.btn {
    background: linear-gradient(145deg, #4b6b89, #364d63); /* Градиент для современной кнопки */
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 30px; /* Более закругленные углы */
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    display: inline-block;
    text-align: center;
    min-width: 150px;
}

.btn:hover {
    background: linear-gradient(145deg, #577b9b, #3c5a73); /* Изменение градиента при наведении */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 3px 6px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px); /* Анимация при наведении */
}

.btn:active {
    transform: translateY(1px); /* Реакция при нажатии */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.modal-footer {
    text-align: center;
    padding-bottom: 20px;
}


/* инфо модалка */

.shift-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.shift-table thead {
    background: #2e3f55;
    color: #ffffff;
}

.shift-table th, .shift-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #3a4c63;
}

.shift-table tbody tr:hover {
    background-color: #3a4c63;
    color: #ffffff;
}

.table-section {
    display: grid;
    gap: 12px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    background: #2e3b4c;
    border-radius: 8px;
    /*overflow: hidden;*/
}
th {
    position: sticky; /* Фиксация */
    top: 0; /* Зафиксировать заголовок сверху */
    z-index: 1; /* Поверх других элементов */
}
.styled-table th, .styled-table td {
    padding: 8px;
    text-align: center;
    color: #ffffff;
    border-bottom: 1px solid #3a4c63;
}

.styled-table th {
    background: #3d5067;
    color: #c5d2e3;
}

.paper-ribbons-table th {
    background: #5d3b4c;
}

.footer-text p {
    margin: 5px 0;
    /*color: #ffffff;*/
}

.blue-text {
    margin-bottom: 2%;
    color: #4ca3ff;
    font-size: 85%;
}

.red-text {
    margin-bottom: 2%;
    color: #ff6161;
    font-size: 85%;
}

p {
    color: black;
    margin: 0
}


.info-modal{
    color: white;
}

/* начальная страница */

.welcome-container {
    margin-top:15% ;
    background-color: #2a3b4d;
    border-radius: 25px;
    padding: 20px;
    /*width: 90%;*/
    /*max-width: 500px;*/
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /*border: 4px solid #1c1f24;*/
    text-align: center;
}

.logo-container {
    margin-bottom: 15px;
}

.logo-container img {
    max-width: 150px;
    height: auto;
}

h1 {
    color: #ffffff;
    font-size: 26px;
    margin: 20px 0;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
/* Авторизация */
/* Контейнер для страницы авторизации */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    /*padding-top: 10%;*/
    /*background: linear-gradient(145deg, #2a3b4d, #344b65);*/
}

.login-box {
    background: linear-gradient(145deg, #3b4e6b, #2a3b4d);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
    text-align: center;
    min-height: auto; /* Минимальная высота соответствует содержимому */
    height: auto; /* Автоматическая высота */
    max-height: 90vh; /* Ограничение максимальной высоты */
    overflow-y: auto; /* Включаем прокрутку при необходимости */
    overflow-x: hidden;
    box-sizing: border-box; /* Включаем padding и border в ширину */
}

/* Стили для логотипа и заголовка */
.login-header {
    background: #1e2a3a;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3), inset -2px -2px 5px rgba(255, 255, 255, 0.1);

    /*margin-bottom: 10px;*/
}

.login-header img {
    max-width: 100px; /* Уменьшенный размер логотипа для лучшего соотношения */
    margin-bottom: 10px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3)); /* Тень под логотипом */
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: horizontal-rotate 5s infinite linear;
}
@keyframes horizontal-rotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.login-header img:hover {
    transform: scale(1.05); /* Легкое увеличение при наведении */
    filter: drop-shadow(4px 8px 10px rgba(0, 0, 0, 0.4)); /* Увеличение тени при наведении */
}

.login-header h1 {
    color: #ffffff;
    margin: 10px 0;
    font-size: 28px; /* Увеличен размер шрифта для более выразительного вида */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Добавлена тень к тексту */
    letter-spacing: 1.5px; /* Добавлено небольшое расстояние между буквами */
    font-weight: bold; /* Более жирный шрифт */
}

.login-header h2 {
    color: #b0b3bb;
    margin: 5px 0;
    font-size: 18px;
    text-transform: uppercase; /* Преобразование текста в верхний регистр */
    letter-spacing: 1px; /* Расстояние между буквами */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Легкая тень для подчеркивания */
}


.input-text {
    width: calc(100% - 20px); /* Поля ввода занимают всю ширину, учитывая отступ */
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #2e3f55;
    color: #ffffff;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    margin: 0 auto; /* Центрируем поля ввода */
    display: block; /* Убедимся, что это блоковый элемент */
}

.input-text::placeholder {
    color: #c5c7cb;
    opacity: 0.8;
}

.input-text:focus {
    outline: none;
    background: #3b4e6b;
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.3);
}

/* Стили для кнопки логина */
.login-btn {
    background: linear-gradient(145deg, #4b6b89, #364d63);
    color: #ffffff;
    padding: 15px 40px; /* Увеличиваем внутренние отступы для большей кнопки */
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 18px; /* Увеличиваем размер шрифта */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    display: inline-block;
    text-align: center;
    margin-top: 25px; /* Добавляем больше отступа сверху */
    width: calc(100% - 40px); /* Делаем кнопку более широкой */
}

.login-btn:hover {
    background: linear-gradient(145deg, #577b9b, #3c5a73);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 3px 6px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}


.login-footer {
    margin-top: 15px;
    color: #c5c7cb;
}

.login-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: #ff4c4c;
}

.errorText{
    color: red;
    text-align: center;
}

.successText{
    text-align: center;
}


.table-list_container{
    max-width: 100%; /* Ограничение по ширине */
    max-height: 300px; /* Ограничение по высоте (можно настроить) */
    /*overflow-x: auto; !* Прокрутка по горизонтали *!*/
    overflow-y: auto;
}


/* Адаптивные стили */

@media (max-width: 768px) {
    .modal {
        padding: 15px;
        width: 90%;
    }

    .modal-header h1 {
        font-size: 20px;
    }
    .login-header h1 {
        font-size: 20px;
    }

    /*.modal-header img {*/
    /*    max-height: 60px;*/
    /*}*/

    .modal-body {
        flex-direction: column;
        gap: 10px;
    }

    .field-group {
        padding: 5px;
    }

    .input-number,
    .dropdown-selected {
        width: calc(100% - 2px); /* Установил ширину в пределах контейнера */
        padding: 8px;
        box-sizing: border-box;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .modal-header h1 {
        font-size: 18px;
    }

    .input-number,
    .dropdown-selected {
        font-size: 12px;
        padding: 8px;
        width: calc(100% - 2px); /* Устанавливаем ширину относительно контейнера */
    }

    .btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    /*.modal-header img {*/
    /*    max-height: 50px;*/
    /*}*/
}

@media (max-width: 600px) {
    .shift-table th, .shift-table td {
        font-size: 12px;
        padding: 8px;
    }
    .styled-table th, .styled-table td {
        padding: 6px;
        font-size: 12px;
    }
}
