.staff__table table .table__setting .option {
    height: auto;
}

.option__link:hover {
    cursor: pointer;
}

.card-body .table-responsive {
    overflow-x: visible;
}


/* Стили для индикаторов загрузки видео */
.upload-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 10000;
    font-size: 16px;
    text-align: center;
}

.upload-loading div {
    margin: 0;
}

.upload-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.upload-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f44336;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Анимация для сообщений */
.upload-success,
.upload-error {
    animation: slideInRight 0.3s ease-out;
}


@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Стили для блока прикрепления файлов */
.block-text-add__input--file {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.file-attachment {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.file-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.btn-download,
.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.2s;
}

.btn-download {
    background: #007bff;
    color: white;
}

.btn-download:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.btn-view {
    background: #6c757d;
    color: white;
}

.btn-view:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
}

.file-upload {
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.file__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-size: 14px;
}

.upload-icon {
    width: 32px;
    height: 32px;
    opacity: 0.6;
}

.file-upload:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.file-upload:hover .file__text {
    color: #007bff;
}


/* Стили для кнопки создания приглашения */
.staff__add {
    width: auto;
    padding: 10px 20px;
}


/* фикс вёрстки на главной странице */
.main .banner__container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.main .banner {
    margin-bottom: 20px;
}

.main .row__content .item {
    margin-top: 0px;
}

.main .banner {
    position: relative;
    /* Сброс фоновых изображений и стилей */
    background: none;
}

/* Override and style the avatar save button so it fits design */
.cart-info form .cart-info__button {
    background: linear-gradient(94.35deg, #BDF565 4.54%, #09C2C3 96.03%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    height: 40px;
    border-radius: 36px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.006em;
    color: #fff;
    border: none;
    transition: all 0.3s ease-in-out;
}

.cart-info form .cart-info__button:hover {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(80, 213, 98, 0.774);
}

/* -------------------------------
   Стилизация полей Email и Даты
   на странице создания приглашения
--------------------------------*/
.staff .text-input {
    display: block;
    height: 42px;
    margin-bottom: 16px;
}

.staff .text-input .input {
    position: relative;
}

/* Базовый вид поля */
.staff .text-input .input input {
    display: flex;
    width: 100%;
    padding: 12px 24px;
    border: 1px solid #c7ddd8;
    /* var(--color-greyC) */
    border-radius: 24px;
    background: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #024A46;
    /* var(--color-green) */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Состояние readonly / disabled */
.staff .text-input .input input:disabled,
.staff .text-input .input input[readonly] {
    background-color: #f8f9fa;
}

/* Плавающий label */
.staff .text-input .text {
    position: absolute;
    left: 25px;
    top: 8px;
    transition: all 0.3s ease;
    pointer-events: none;
    color: #a9b6aa;
    background: #ffffff;
    padding: 0 4px;
}

.staff .text-input .input input:not(:placeholder-shown)+.text,
.staff .text-input .input input:focus+.text {
    top: -12px;
    font-size: 12px;
}

/* Доп. правый отступ под иконку календаря для поля даты */
.staff .text-input.date-input .input input {
    padding-right: 40px;
}

/* Стилизация иконки календаря (WebKit) */
.staff .text-input.date-input .input input::-webkit-calendar-picker-indicator {
    filter: invert(60%);
    cursor: pointer;
}

/* Стили для кнопок действий в секциях */
.option-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-right: 10px;
}

.option-wrapper:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.section-actions {
    display: flex;
    gap: 8px;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.option-wrapper:hover .section-actions {
    opacity: 1;
}

.section-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.section-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.section-action-btn.edit-section {
    color: #666;
}

.section-action-btn.edit-section:hover {
    color: #333;
}

.section-action-btn.delete-section {
    color: #dc3545;
}

.section-action-btn.delete-section:hover {
    color: #c82333;
    background-color: rgba(220, 53, 69, 0.1);
}

/* Стили для модальных окон секций */
.modal-delete__content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    position: relative;
}

.modal-delete__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.modal-delete__message {
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-delete__message p {
    margin-bottom: 10px;
}

.modal-delete__options {
    margin-bottom: 20px;
}

.label-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.fake-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.label-radio input[type="radio"]:checked+.fake-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #BDF565;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.label-radio input[type="radio"] {
    display: none;
}

.transfer-section-wrapper {
    margin-left: 30px;
    margin-bottom: 10px;
}

.form-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.button--delete {
    background: #dc3545 !important;
    color: white;
}

.button--delete:hover {
    background: #c82333 !important;
}

/* Повышаем приоритет отображения модальных окон над подложкой раскрытого меню */
.modal-section,
.modal-delete {
    z-index: 10000001 !important;
}

/* Стили для кнопок «Скачать» и «Открыть» в заданиях */
.file_task {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 36px;
    background: linear-gradient(94.35deg, #BDF565 4.54%, #09C2C3 96.03%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.006em;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease-in-out;
}

.file_task:hover {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(80, 213, 98, 0.774);
    opacity: 0.9;
}

/* Стилизация формы создания филиала */
.list-tasks__container.create form {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
}

.list-tasks__container.create div.input {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
}

.list-tasks__container.create div.input .text1 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #024A46;
    margin-bottom: 8px;
    position: absolute;
    left: 25px;
    top: -8px;
    background: #ffffff;
    padding: 0 4px;
    z-index: 1;
}

.list-tasks__container.create div.input [type=text] {
    width: 100%;
    padding: 12px 24px;
    border: 1px solid #c7ddd8;
    border-radius: 24px;
    background: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #024A46;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.list-tasks__container.create div.input [type=text]:focus {
    border-color: #BDF565;
    box-shadow: 0 0 0 3px rgba(189, 245, 101, 0.1);
}

.list-tasks__container.create div.input [type=text]:focus+.text1 {
    color: #BDF565;
}

.list-tasks__head.center {
    justify-content: center;
}

.list-tasks__container.create .list-tasks__title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #024A46;
    text-align: center;
}

.list-tasks__container.create .buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Fix: поднять стрелку "Назад" ближе к верхнему краю */
.checking-task__main>.button-back,
.module__main>.button-back {
    margin-bottom: 10px;
    /* Смещаем вверх */
    display: flex;
    padding: 10px;
    width: fit-content;
}

.table-sm>:not(caption)>*>* {
    overflow-wrap: anywhere;
}

/* -------------------------------
   Кнопка "Выбрать файл" в модалке выбора аватарки
--------------------------------*/
.my-image-input {
    position: relative;
}

/* Скрываем стандартный инпут файла */
.my-image-input .download-video__input {
    position: absolute;
    left: 0;
    top: 0;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Стилизованная кнопка выбора файла */
.file-select-btn {
    background: linear-gradient(94.35deg, #BDF565 4.54%, #09C2C3 96.03%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    height: 36px;
    border-radius: 36px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.006em;
    color: #fff;
    border: none;
    transition: all 0.3s ease-in-out;
}

.file-select-btn:hover {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(80, 213, 98, 0.774);
    opacity: 0.9;
}

/* Скрытый input в блоке с загрузкой видео/файла ответа */
.download-video__input {
    position: absolute;
    left: 0;
    top: 0;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Fix: высота кнопки выбора обложек */
.modal-create__block--switch .switch-item.active {
    height: 36px;
}

@media (max-width: 768px) {
    .checking-task__wrapper .head {
        display: flex;
        flex-direction: column;
        border-radius: 5px;
        align-items: baseline;
    }
}

/* Fix: стили для видео в заданиях */
.answer-video-wrapper {
    display: flex;
}

.answer-video-wrapper__left {
    flex: 1;
}

.answer-video-wrapper__right {
    flex: 1;
}

@media (max-width: 768px) {
    .answer-video-wrapper {
        flex-direction: column;
    }

    .answer-video-wrapper__left {
        margin-bottom: 20px;
    }
}


.file-task-container {
    display: flex;
    gap: 10px;
    margin: 10px;
}

.file-task-container .file_task { 
    margin-right: 10px;
    margin-bottom: 10px;
}

.next-lesson-container {
    margin: 10px;
}

/* Fix: стили для заголовка в общем блоке */

@media (max-width: 1024px) {
    .list-tasks__inputs {
        display: flex;
        flex-direction: column;
        align-items: baseline;
        height: auto;
    }

    .statistic__inputs {
        display: flex;
        flex-direction: column;
        align-items: baseline;
        height: auto;
    }

    .staff__inputs {
        display: flex;
        flex-direction: column;
        align-items: baseline;
        height: auto;
    }
}



@media (max-width: 768px) {
    .general__head {
        display: flex;
        flex-direction: column;
        align-items: baseline;
    }

    .education .statistic__add {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .education__content .statistic__add[data-name=kurs] {
        margin-left: 0 !important;
    }

    .staff__head {
        display: flex;
        flex-direction: column;
        align-items: baseline;
    }

    .staff__head .staff__add {
        margin-left: 0;
        margin-top: 10px;
    }

    .staff__title {
        margin-bottom: 10px;
    }

    .main .banner__title p {
        font-size: 28px;
    }

    .main .banner__container {
        position: relative;
        order: 1;
        background-color: #024A46;
        padding-bottom: 20px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .main .banner {
        display: flex;
        flex-direction: column;
    }

    .menu-content__head {
        width: unset;
    }

    .list-tasks__table .cell-flex {
        white-space: nowrap;
        gap: 10px;
    }

    .list-tasks__table .cell-flex .svgs {
        flex-shrink: 0;
    }
}