
.latest-news {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.latest-news h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.input-group>.form-control, .input-group>.form-floating, .input-group>.form-select {
  min-width: 50px;
}

.latest-news ul {
  list-style: none;
  padding: 0;
}

.hr-clients {
  margin: 0px 0px 15px 0px;
  padding: 0;
  height: 0;
  border: none;
  border-top: 1px dashed #c4c4c4;
}
.latest-news li {
  margin-bottom: 0.5rem;
}

.latest-news li a {
  text-decoration: none;
  color: #007bff;
}

.latest-news li a:hover {
  text-decoration: underline;
}

.latest-news li small {
  display: block;
  color: #6c757d;
  font-size: 0.875rem;
}
#loadingIndicator {
  position: fixed; /* Фиксированное положение */
  bottom: 20px; /* Отступ снизу */
  right: 38px; /* Отступ справа */
  background-color: rgba(255, 255, 255, 0.9); /* Полупрозрачный белый фон */
  border: 1px solid #ddd; /* Граница */
  border-radius: 8px; /* Закругленные углы */
  padding: 10px 15px; /* Внутренние отступы */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Тень */
  display: flex; /* Гибкий контейнер */
  align-items: center; /* Выравнивание по центру */
  gap: 10px; /* Расстояние между элементами */
  z-index: 10000; /* Поверх других элементов */
}

.spinner-border {
  width: 1.5rem; /* Размер спиннера */
  height: 1.5rem;
}

.dropdown-client {
  min-width: 100%;
  text-align: left;
  border-color: #dee2e6;
}

.dropdown-input {
  border-color: #dee2e6;
}

#addNewCity, #addNewSchool {
  display: none; /* Скрываем кнопки добавления по умолчанию */
}

.dropdown-menu.show {
  min-width: 100%;
  padding: 10px;
}


.form-group{
position:relative;
}
.form-group .form-control-icon {
  position: absolute;
  z-index: 2;
  display: block;
  width: 2.375rem;
  height: 2.375rem;
  line-height: 2.375rem;
  text-align: center;
  pointer-events: none;
  color: #aaa;
  right:0;
  top: 0px;
}

/* Стили для чекбоксов ролей */
.role-checkbox {
  margin-right: 8px; /* Отступ справа */
  cursor: pointer; /* Курсор в виде указателя */
}

.role-label {
  font-weight: bold; /* Жирный текст */
  color: #333; /* Цвет текста */
  cursor: pointer; /* Курсор в виде указателя */
}

/* Стили для чекбоксов предметов */
.subject-checkbox {
  margin-right: 8px; /* Отступ справа */
  cursor: pointer; /* Курсор в виде указателя */
}

.subject-label {
  cursor: pointer; /* Курсор в виде указателя */
}
.captcha-image{
  border-radius: 5px;
  border: 1px solid #dee2e6;
}

.blockquote-footer {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  font-size: .675em;
  color: #6c757d;
  font-style: italic !important;
}
.btn-get-started {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  border: 0;
  transition: 0.5s;
  color: #fff;
  background: #56b8e6;
}

.btn-grey {
    background-color: #f7f7f7;
    border: 1px solid #cfcfcf;
}

.btn-get-started:hover {
  background: rgb(82, 139, 163);
  color: #fff;
}

body {
  overflow-x: hidden; /* Предотвращает горизонтальную прокрутку */
  font-size: 14px;
}

#sidebar-wrapper {
    min-height: 100vh; /* Минимальная высота - весь viewport */
    margin-left: -15rem; /* Скрываем меню по умолчанию */
    transition: margin 0.25s ease-out; /* Плавное появление */
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
    width: 15rem; /* Фиксированная ширина меню */
}

#page-content-wrapper {
    min-width: 100vw; /* Занимает всю ширину */
}

/* Переключатель меню (гамбургер) */
#sidebar-wrapper.toggled  {
    margin-left: 0; /* Показываем меню */
}
#wrapper  {
    margin-left: 0; /* Показываем меню */
}
/* Медиа-запрос для небольших экранов (md и меньше) */
@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0; /* На больших экранах меню всегда видно */
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #sidebar-wrapper.toggled {
        margin-left: -15rem; /* Скрываем меню по умолчанию  */
    }
    
    
}
/*Стиль для активного пункта меню*/
.list-group-item-action.active {
    background-color: #050608;
    color: white;
    border-color: #050608;
  }
  .bg-left-menu{
    background-color:#34485e;
  }
  .bg-top-menu{
    background-color:#f1f1f1;
  }
  .list-group-item{
    border: 0px solid #34485e;
    color: white;
  }
  .sidebar.collapsed {
width: 60px; 
}

.math {
display: inline-block;
font-size: 1.2em;
padding: 0 5px;
}
.sidebar.collapsed .nav-link {
justify-content: center; /* Центрируем иконки */
}

.sidebar.collapsed .nav-link span {
display: none; /* Скрываем текст */
}
.sidebar.collapsed .nav-link span {
    display: none; /* Скрываем текст */
}
.button-menu {
margin-left: -15px;
width: 85px; 
background-color:#34485e;
border: #343a40;
font-size: 15px;
}
.button-menu-2 {
    margin-right: 10px;
width: 75px;
background-color: #656e78;
border: #343a40;
font-size: 15px;
padding: 10px;
}
.navbar-toggler{
color: #fff;
}
.collapse > a{
background-color:#1f3146;
}

.sidebar .bg-left-menu {
display: flex;
align-items: center;
position: relative; /* Для позиционирования стрелки */
padding-right: 2rem; /* Добавляем отступ справа для стрелки */
}

.sidebar .bg-left-menu .arrow {
position: absolute;
right: 1rem; /* Позиционируем стрелку по правому краю */
}

.sidebar .bg-left-menu .icon {
margin-right: 0.35rem; /* Отступ между иконкой и текстом */
}

.list-group-item-action:focus, .list-group-item-action:hover {
z-index: 1;
color: #fff;
text-decoration: none;
background-color:rgb(30 41 54);
}

.mb-70 {
margin-bottom: 70px;
}

/* Стили для нижней панели */
#bottom-panel {
margin-left: 15rem; /* Отступ слева, чтобы не перекрывать левое меню */
width: calc(100% - 15rem); /* Ширина панели минус ширина левого меню */
transition: margin 0.25s ease-out; /* Плавное изменение отступа */
margin-top: -54px;
}
td.gridjs-td {
padding: 15px 15px;
}
/* Если меню свёрнуто, уменьшаем отступ и ширину */
#sidebar-wrapper.toggled ~ #bottom-panel  {
margin-left: 60px; /* Отступ для узкого меню */
width: calc(100% - 60px); /* Ширина для узкого меню */
}
@media (min-width: 576px) {
.modal {
--bs-modal-width: 99%;
}
}




.file-icon {
            font-size: 24px;
            margin-right: 10px;
        }
        .category-icon {
            font-size: 20px;
            margin-right: 8px;
        }
        .file-card {
            transition: transform 0.2s;
            cursor: pointer;
        }
        .file-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        .file-badge {
            font-size: 0.7rem;
        }
        .folder-badge {
            font-size: 0.7rem;
        }
        .upload-area {
            border: 2px dashed #ccc;
            border-radius: 10px;
            padding: 40px;
            text-align: center;
            cursor: pointer;
            transition: border-color 0.3s;
        }
        .upload-area:hover {
            border-color: #0d6efd;
        }
        .upload-area.dragover {
            border-color: #0d6efd;
            background-color: rgba(13, 110, 253, 0.1);
        }
        .stats-card {
            border-radius: 10px;
            border: none;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .breadcrumb {
            background: none;
            padding-left: 0;
        }
        .breadcrumb-item a {
            text-decoration: none;
        }
        .category-tree {
            list-style: none;
            padding-left: 0;
        }
        .category-tree li {
            padding: 5px 0;
        }
        .category-tree ul {
            padding-left: 20px;
            list-style: none;
        }
        .access-badge {
            font-size: 0.7rem;
            padding: 3px 8px;
        }


        .category-tree {
        list-style: none;
        padding-left: 0;
    }
    
    .category-tree ul {
        list-style: none;
        padding-left: 20px;
        margin-top: 5px;
    }
    
    .category-tree li {
        margin-bottom: 8px;
        border-left: 2px solid #e9ecef;
        padding-left: 10px;
    }
    
    .category-icon {
        margin-right: 8px;
    }
    
    .access-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .file-card {
        cursor: pointer;
        transition: transform 0.2s;
        height: 140px;
    }
    
    .file-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .file-icon {
        font-size: 2rem;
        margin-right: 15px;
    }
    
    .file-badge {
        font-size: 0.7rem;
        margin-left: 3px;
    }
    
    .upload-area {
        border: 2px dashed #dee2e6;
        border-radius: 8px;
        padding: 40px 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .upload-area:hover {
        border-color: #0d6efd;
        background-color: rgba(13, 110, 253, 0.05);
    }
    
    .upload-area.dragover {
        border-color: #0d6efd;
        background-color: rgba(13, 110, 253, 0.1);
    }
    
    .stats-card {
        border-radius: 10px;
        transition: transform 0.3s;
    }
    
    .stats-card:hover {
        transform: translateY(-5px);
    }

    .file-icon { color: #6c757d; }
        .folder-icon { color: #ffc107; }
        .file-item:hover { background-color: #f8f9fa; }
        .file-size { font-size: 0.85em; color: #6c757d; }
        .breadcrumb-item a { text-decoration: none; }
        .upload-area {
            border: 2px dashed #dee2e6;
            border-radius: 5px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: border-color 0.3s;
        }
        .upload-area:hover {
            border-color: #0d6efd;
        }
        .upload-area.dragover {
            border-color: #0d6efd;
            background-color: #f0f7ff;
        }
        .context-menu {
            position: absolute;
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 5px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            z-index: 1000;
            display: none;
        }
        .context-menu-item {
            padding: 8px 15px;
            cursor: pointer;
            white-space: nowrap;
        }
        .context-menu-item:hover {
            background-color: #f8f9fa;
        }
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255,255,255,0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        .context-menu {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
}

.context-menu ul {
    padding: 5px 0;
    margin: 0;
}

.context-menu-item {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.context-menu-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.context-menu-item.text-danger:hover {
    background-color: #f8d7da;
}

#grid {
    min-height: 500px;
}

.gridjs-table {
    width: 100%;
}

.file-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.folder-icon {
    color: #ffc107;
}

.file-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

tr:hover .file-actions {
    opacity: 1;
}

.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
}

.grid-item {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.grid-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.grid-item-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.grid-item-name {
    font-size: 12px;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.selected {
    background-color: #e7f1ff !important;
    border-color: #0d6efd !important;
}

.upload-file-item {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.upload-file-item:last-child {
    border-bottom: none;
}

.context-menu {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
}

.context-menu ul {
    padding: 5px 0;
    margin: 0;
}

.context-menu-item {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.context-menu-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.context-menu-item.text-danger:hover {
    background-color: #f8d7da;
}

/* Иконки файлов */
.file-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.folder-icon {
    color: #ffc107;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.breadcrumb {
            background-color: #f8f9fa;
            padding: 10px 15px;
            border-radius: 5px;
        }
        
        .stats-card {
            margin-bottom: 20px;
        }
        
        #loadingOverlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        
        #loadingOverlay.show {
            display: flex !important;
        }

        .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Стили для таблицы */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Стили для хлебных крошек */
.breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
}

/* Анимация загрузки */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#loadingOverlay {
    animation: fadeIn 0.3s ease-in;
}

/* Стили для модальных окон */
.modal-content {
    border-radius: 0.5rem;
}

.fc-col-header {
    background-color: rgb(241 241 241);
    min-height: 35px;
}

.fc-col-header a {
    color: rgb(241 241rgb(58, 58, 58));
    vertical-align: middle !important; 
}

.fc-col-header  tr {
    vertical-align: middle;
    
}

.fc th {
    padding: 0px;
    vertical-align: middle !important; 
}

.fc .fc-col-header-cell-cushion {
    color: rgb(241 241rgb(58, 58, 58));
    text-decoration: none;
    color: #484848;
}

.card-header {
    height: 55px;
}

 .is-autofilled {
        background-color: #d4edda !important;
        border-color: #c3e6cb !important;
        transition: background-color 0.5s ease;
    }
    
    @keyframes autofill-highlight {
        0% { background-color: #d4edda; }
        100% { background-color: transparent; }
    }
    
    .autofill-hint {
        font-size: 0.875em;
        color: #28a745;
        margin-top: 5px;
    }
    
    .autofill-hint i {
        margin-right: 5px;
    }
    .fc-daygrid-day-number{
        color: #5e5e5e;
        text-decoration: none;
        padding: 10px !important;
    }

    .teacher-color-item {
    display: flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    font-size: 0.9em;
}

.teacher-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.fc-event {
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.fc-event:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .teacher-color-item {
        font-size: 0.8em;
        padding: 2px 8px;
    }
}

/* Стили для событий календаря */
.fc-event {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px !important;
    border: none !important;
    font-weight: 500;
}

.fc-event:hover {
    filter: brightness(110%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* Градиент для групповых занятий */
.fc-event[data-lesson-type="group"] {
    background: linear-gradient(135deg, var(--event-color) 0%, var(--event-color-dark) 100%) !important;
}

/* Индивидуальные занятия */
.fc-event[data-lesson-type="individual"] {
    background: linear-gradient(135deg, var(--event-color) 0%, color-mix(in srgb, var(--event-color) 80%, black) 100%) !important;
}

/* Отмененные занятия */
.fc-event.status-cancelled {
    opacity: 0.7;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
    text-decoration: line-through;
}

/* Легенда */
.teacher-color-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 16px;
    margin: 4px;
    border-radius: 20px;
    background: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.teacher-color-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.teacher-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Адаптация под темную тему FullCalendar */
.fc-theme-standard .fc-event {
    border: none !important;
}

.fc-event-title {
    font-weight: 600 !important;
    padding: 2px 4px !important;
}

.fc-event-time {
    font-weight: 500 !important;
    padding: 2px 4px !important;
    opacity: 0.9;
}

/* В конце файла docs.js или в отдельном CSS */
#studentMultiSelect {
    min-height: 150px;
}

#studentMultiSelect option {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

#studentMultiSelect option:checked {
    background: #0d6efd linear-gradient(0deg, #0d6efd 0%, #0d6efd 100%);
    color: white;
}

#studentMultiSelect option:hover {
    background: #e3f2fd;
}
/* В конце файла docs.js или в отдельном CSS */

#studentMultiSelect {
    min-height: 200px;
    border-radius: 6px;
}

#studentMultiSelect option {
    padding: 8px 12px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

#studentMultiSelect option:hover {
    background: #e8f0fe;
}

#studentMultiSelect option:checked {
    background: #0d6efd linear-gradient(0deg, #0d6efd 0%, #0d6efd 100%);
    color: white;
}

#studentMultiSelect option[value="all"] {
    background: #e3f2fd !important;
    color: #0d6efd !important;
    font-weight: bold;
}

#studentMultiSelect option[value="all"]:checked {
    background: #0d6efd linear-gradient(0deg, #0d6efd 0%, #0d6efd 100%) !important;
    color: white !important;
}

#classFilterContainer {
    margin-bottom: 10px;
}

#classFilter {
    border-radius: 6px;
}
/* Добавьте в конец docs.php или в отдельный CSS файл */

#studentMultiSelect {
    min-height: 200px;
    border-radius: 6px;
}

#studentMultiSelect option {
    padding: 8px 12px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

#studentMultiSelect option:hover {
    background: #e8f0fe;
}

#studentMultiSelect option:checked {
    background: #0d6efd linear-gradient(0deg, #0d6efd 0%, #0d6efd 100%);
    color: white;
}

#studentMultiSelect option[value="all"] {
    background: #e3f2fd !important;
    color: #0d6efd !important;
    font-weight: bold;
}

#studentMultiSelect option[value="all"]:checked {
    background: #0d6efd linear-gradient(0deg, #0d6efd 0%, #0d6efd 100%) !important;
    color: white !important;
}

#classFilterContainer {
    margin-bottom: 10px;
}

#classFilter {
    border-radius: 6px;
}

/* Стили для кнопки загрузки */
#uploadForm .btn-success {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

#uploadForm .btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
}
/* Добавьте в конец docs.php или в отдельный CSS файл */

#classFilterContainer {
    margin-bottom: 10px;
}

#classFilter {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 6px 12px;
}

#studentMultiSelect {
    min-height: 200px;
    border-radius: 6px;
}

#studentMultiSelect option {
    padding: 8px 12px;
    border-bottom: 1px solid #f5f5f5;
}

#studentMultiSelect option:checked {
    background: #0d6efd linear-gradient(0deg, #0d6efd 0%, #0d6efd 100%);
    color: white;
}

#studentMultiSelect option[value="all"] {
    background: #e3f2fd !important;
    color: #0d6efd !important;
    font-weight: bold;
}
/* Добавьте в конец docs.php или в отдельный CSS файл */

#classFilter {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 6px 12px;
    width: 100%;
}

#classFilter:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#studentMultiSelect {
    min-height: 200px;
    border-radius: 6px;
}

#studentMultiSelect option {
    padding: 8px 12px;
    border-bottom: 1px solid #f5f5f5;
}

#studentMultiSelect option:checked {
    background: #0d6efd linear-gradient(0deg, #0d6efd 0%, #0d6efd 100%);
    color: white;
}

#studentMultiSelect option[value="all"] {
    background: #e3f2fd !important;
    color: #0d6efd !important;
    font-weight: bold;
}
/* Стили для модального окна передачи данных */
#transferUserList {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 5px;
    background: #f8f9fa;
}

#transferUserList .list-group-item {
    border-radius: 6px;
    margin-bottom: 4px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#transferUserList .list-group-item:hover {
    background: #f0f4ff;
    border-color: #4b60b1;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(75, 96, 177, 0.15);
}

#transferUserList .list-group-item.active {
    background: #e8edff;
    border-color: #4b60b1;
    box-shadow: 0 2px 12px rgba(75, 96, 177, 0.2);
}

#transferUserList .list-group-item.active .form-check-input {
    border-color: #4b60b1;
    background-color: #4b60b1;
}

#transferUserList .list-group-item-action {
    cursor: pointer;
}

#transferUserList .list-group-item-action .badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

#transferUserList .list-group-item-action strong {
    color: #2c3e50;
    font-size: 14px;
}

#transferUserList .list-group-item-action .text-muted {
    font-size: 12px;
    color: #7f8c8d !important;
}

/* Стиль для опции "Архив" */
#transferUserList .list-group-item-danger {
    background: #fff5f5;
    border-color: #fcc;
    border-radius: 6px;
    margin-bottom: 4px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

#transferUserList .list-group-item-danger:hover {
    background: #ffe8e8;
    border-color: #f99;
    transform: translateX(3px);
    box-shadow: 0 2px 12px rgba(220, 53, 69, 0.2);
}

#transferUserList .list-group-item-danger.active {
    background: #ffd6d6;
    border-color: #dc3545;
    box-shadow: 0 2px 12px rgba(220, 53, 69, 0.3);
}

#transferUserList .list-group-item-danger strong {
    color: #dc3545;
}

#transferUserList .list-group-item-danger .text-muted {
    color: #6c757d !important;
}

/* Стили для radio кнопок */
#transferUserList .form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 2px solid #ced4da;
    transition: all 0.2s ease;
}

#transferUserList .form-check-input:checked {
    background-color: #4b60b1;
    border-color: #4b60b1;
}

#transferUserList .form-check {
    margin: 0;
    padding: 0;
}

/* Стиль для скроллбара */
#transferUserList::-webkit-scrollbar {
    width: 6px;
}

#transferUserList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#transferUserList::-webkit-scrollbar-thumb {
    background: #c1c7d0;
    border-radius: 10px;
}

#transferUserList::-webkit-scrollbar-thumb:hover {
    background: #a0a8b3;
}

/* Стиль для поиска */
#transferUserSearch {
  
}

#transferUserSearch:focus {
    border-color: #4b60b1;
    box-shadow: 0 0 0 0.2rem rgba(75, 96, 177, 0.25);
    outline: none;
}

#transferUserSearch::placeholder {
    color: #adb5bd;
    font-size: 13px;
}

/* Анимация загрузки */
.transfer-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.transfer-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Стиль для пустого состояния */
.transfer-empty {
    text-align: center;
    padding: 30px 20px;
    color: #6c757d;
}

.transfer-empty i {
    font-size: 36px;
    margin-bottom: 10px;
    color: #ced4da;
}

.transfer-empty p {
    margin: 0;
    font-size: 14px;
}

/* Стиль для заголовка модального окна */
#transferModal .modal-header {
    background: linear-gradient(135deg, #838bb8 0%, #6b75af 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    padding: 20px 25px;
}

#transferModal .modal-title {
    font-weight: 600;
    font-size: 20px;
}

#transferModal .btn-close {
    filter: brightness(0) invert(1);
}

#transferModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 25px;
}

#transferModal .alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14px;
}

#transferModal .alert-warning i {
    margin-right: 8px;
    color: #ffc107;
}

/* Кнопки в модальном окне */
#transferDeleteBtn {
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#transferDeleteBtn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#transferDeleteBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-primary {
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-success{
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-info{
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-danger{
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-warning{
    padding: 8px 20px;
    border-radius: 20px;
}


/* Адаптация для мобильных устройств */
@media (max-width: 576px) {
    #transferUserList .list-group-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
    
    #transferUserList .list-group-item .form-check {
        align-self: flex-end;
    }
    
    #transferUserList .list-group-item .badge {
        align-self: flex-start;
    }
}
/* Стили для списка передачи данных */
#transferUserList .list-group-item {
    transition: all 0.2s ease;
    padding: 10px 15px;
}

#transferUserList .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

#transferUserList .list-group-item.active {
    background-color: #e7f1ff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

#transferUserList .list-group-item-danger.active {
    background-color: #f8d7da;
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

#transferUserList .list-group-item .badge {
    font-size: 11px;
    padding: 4px 8px;
}

#selectedUserInfo {
    margin-top: 10px;
    padding: 8px 15px;
    border-radius: 4px;
}

/* Стили для поиска */
#transferUserSearch:focus {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
    border-color: #0d6efd;
}

/* Анимация загрузки */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}


/* Dashboard Custom Styles - Полная версия */

/* ============ ОБЩИЕ ОТСТУПЫ ============ */

/* Вертикальные отступы для строк */
.row {
    margin-bottom: 25px;
}

.row:last-child {
    margin-bottom: 0;
}

/* Отступы для колонок */
.col-lg-3, .col-md-6, .col-12 {
    padding-bottom: 5px;
}

/* ============ КАРТОЧКИ ============ */

.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 20px 25px;
}

.card-header {
    background: transparent;
    border-bottom: 2px solid #f0f2f5;
    
    border-radius: 10px 10px 0 0 !important;
}

.card-header .card-title {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.card-header .card-title i {
    margin-right: 10px;
    color: #4b60b1;
    font-size: 18px;
}

.card-tools .btn {
    border-radius: 20px;
    padding: 5px 18px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-tools .btn:hover {
    transform: translateX(3px);
}

/* Карточка приветствия */
.card-primary.card-outline {
    border-left: 5px solid #4b60b1;
    border-radius: 10px;
}

.card-primary.card-outline .card-body {
    padding: 25px 30px;
}

.card-primary.card-outline h4 {
    margin-bottom: 8px;
    color: #2c3e50;
}

.card-primary.card-outline h4 strong {
    color: #4b60b1;
}

.card-primary.card-outline .text-muted {
    font-size: 14px;
    color: #7f8c8d !important;
}

/* ============ SMALL BOX (СТАТИСТИЧЕСКИЕ КАРТОЧКИ) ============ */

.small-box {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    min-height: 130px;
}

.small-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.small-box .inner {
    padding: 20px 25px;
    position: relative;
    z-index: 1;
}

.small-box .inner h3 {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.2;
}

.small-box .inner p {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.small-box .icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 55px;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: 0;
}

.small-box:hover .icon {
    font-size: 70px;
    color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) rotate(-5deg) scale(1.1);
}

/* Кнопка "Подробнее" */
.small-box-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    background: rgba(0, 0, 0, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

.small-box-footer:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-decoration: none;
    padding-left: 30px;
}

.small-box-footer i {
    transition: all 0.3s ease;
    font-size: 14px;
}

.small-box-footer:hover i {
    transform: translateX(5px);
}

/* Цвета для карточек статистики */
.small-box.bg-info {
    background: linear-gradient(135deg, #4b60b1 0%, #6b75af 100%);
}

.small-box.bg-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.small-box.bg-warning {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

.small-box.bg-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #e67e22 100%);
}

.small-box.bg-info .small-box-footer {
    background: rgba(0, 0, 0, 0.15);
}

.small-box.bg-success .small-box-footer {
    background: rgba(0, 0, 0, 0.15);
}

.small-box.bg-warning .small-box-footer {
    background: rgba(0, 0, 0, 0.15);
}

.small-box.bg-danger .small-box-footer {
    background: rgba(0, 0, 0, 0.15);
}

/* ============ ТАБЛИЦА С ЗАНЯТИЯМИ ============ */

.table-responsive {
    border-radius: 0 0 10px 10px;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: none;
    border-bottom: 2px solid #eef2f7;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 20px;
    background: #f8f9fc;
}

.table tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f2f5;
    color: #2c3e50;
    font-size: 14px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(75, 96, 177, 0.05);
    cursor: pointer;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table .text-muted {
    font-size: 12px;
    color: #95a5a6 !important;
}

/* ============ БЕЙДЖИ СТАТУСОВ ============ */

.badge {
    padding: 6px 14px;
    font-weight: 500;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-secondary {
    background-color: #e2e3e5;
    color: #383d41;
}

/* ============ TIMELINE (ЛЕНТА ВРЕМЕНИ) ============ */

.timeline {
    position: relative;
    padding: 0;
}

.timeline > div {
    position: relative;
    margin-bottom: 25px;
    padding-left: 0;
}

.timeline .time-label {
    text-align: center;
    margin-bottom: 20px;
}

.timeline .time-label span {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline > div > i {
    position: absolute;
    left: 0;
    top: 5px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    color: #fff;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.timeline .timeline-item {
    margin-left: 55px;
    background: #fff;
    border-radius: 10px;
    padding: 18px 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #6c757d;
    position: relative;
    transition: all 0.3s ease;
}

.timeline .timeline-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.timeline .timeline-item .time {
    float: right;
    color: #95a5a6;
    font-size: 12px;
    font-weight: 400;
    background: #f8f9fc;
    padding: 2px 12px;
    border-radius: 12px;
}

.timeline .timeline-item .time i {
    margin-right: 5px;
    font-size: 11px;
}

.timeline .timeline-item .timeline-header {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    padding-right: 80px;
}

.timeline .timeline-item .timeline-body {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 4px;
}

/* Цвета для иконок в timeline */
.timeline > div > i.bg-info {
    background: linear-gradient(135deg, #4b60b1, #6b75af);
}
.timeline > div > i.bg-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}
.timeline > div > i.bg-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
}
.timeline > div > i.bg-warning {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
}
.timeline > div > i.bg-danger {
    background: linear-gradient(135deg, #e74c3c, #e67e22);
}
.timeline > div > i.bg-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

/* Последний элемент timeline */
.timeline > div:last-child {
    margin-bottom: 5px;
}

.timeline > div:last-child > i {
    background: #bdc3c7 !important;
}

/* ============ ГРАФИК ============ */

#paymentsChart {
    max-height: 210px;
    width: 100% !important;
}

.chart-container {
    position: relative;
    min-height: 200px;
}

/* ============ ПУСТЫЕ СОСТОЯНИЯ ============ */

.text-center.py-4 .fa-2x {
    opacity: 0.3;
    color: #bdc3c7;
}

.text-center.py-4 p {
    color: #95a5a6;
    margin: 5px 0 0 0;
}

/* ============ АНИМАЦИИ ============ */

/* Анимация появления карточек */
.small-box {
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

.small-box:nth-child(1) { animation-delay: 0.05s; }
.small-box:nth-child(2) { animation-delay: 0.15s; }
.small-box:nth-child(3) { animation-delay: 0.25s; }
.small-box:nth-child(4) { animation-delay: 0.35s; }

.card {
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация для чисел в карточках */
.small-box .inner h3 {
    animation: countUp 0.8s ease forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============ АДАПТИВНОСТЬ ============ */

/* Планшеты */
@media (max-width: 992px) {
    .small-box .inner h3 {
        font-size: 30px;
    }
    
    .small-box .icon {
        font-size: 45px;
        right: 10px;
    }
    
    .small-box:hover .icon {
        font-size: 55px;
    }
    
    .card-header .card-title {
        font-size: 15px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .row {
        margin-bottom: 15px;
    }
    
    .col-lg-3, .col-md-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .small-box {
        margin-bottom: 15px;
        min-height: 110px;
    }
    
    .small-box .inner {
        padding: 15px 20px;
    }
    
    .small-box .inner h3 {
        font-size: 26px;
    }
    
    .small-box .inner p {
        font-size: 12px;
    }
    
    .small-box .icon {
        font-size: 35px;
        right: 8px;
    }
    
    .small-box:hover .icon {
        font-size: 45px;
    }
    
    .small-box-footer {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    .card-body {
        padding: 15px 20px;
    }
    
    .card-header {
        padding: 15px 20px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .timeline .timeline-item {
        margin-left: 45px;
        padding: 14px 16px;
    }
    
    .timeline .time-label span {
        font-size: 11px;
        padding: 4px 14px;
    }
    
    .timeline > div > i {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 14px;
    }
    
    .timeline .timeline-item .timeline-header {
        padding-right: 60px;
        font-size: 14px;
    }
    
    .card-primary.card-outline .card-body {
        padding: 18px 20px;
    }
    
    .card-primary.card-outline h4 {
        font-size: 18px;
    }
    
    #paymentsChart {
        max-height: 170px;
    }
}

/* Маленькие телефоны */
@media (max-width: 576px) {
    .col-6 {
        padding-left: 6px;
        padding-right: 6px;
    }
    
    .small-box .inner h3 {
        font-size: 20px;
    }
    
    .small-box .inner p {
        font-size: 10px;
    }
    
    .small-box .icon {
        font-size: 28px;
        right: 5px;
    }
    
    .small-box-footer {
        padding: 6px 15px;
        font-size: 11px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .card-tools .btn {
        padding: 4px 12px;
        font-size: 11px;
    }
    
    .timeline .timeline-item {
        margin-left: 35px;
        padding: 10px 12px;
    }
    
    .timeline .timeline-item .time {
        float: none;
        display: block;
        margin-top: 5px;
        text-align: left;
    }
    
    .timeline .timeline-item .timeline-header {
        padding-right: 0;
        font-size: 13px;
    }
    
    .card-primary.card-outline .card-body {
        padding: 12px 15px;
    }
    
    .card-primary.card-outline h4 {
        font-size: 16px;
    }
    
    #paymentsChart {
        max-height: 140px;
    }
}

/* ============ СКРОЛЛ ДЛЯ ТАБЛИЦЫ ============ */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 500px;
}

/* ============ ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ ============ */

/* Тень при наведении на карточки с таблицами */
.card .table-responsive {
    border-radius: 0 0 10px 10px;
}

/* Стиль для пустого состояния в timeline */
.timeline > div:last-child > i {
    background: #bdc3c7 !important;
}

/* Улучшение читаемости */
.timeline .timeline-item .timeline-body {
    line-height: 1.6;
}

/* Эффект при наведении на строки таблицы */
.table tbody tr td:first-child {
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.table tbody tr:hover td:first-child {
    border-left-color: #4b60b1;
}



/* Стили для иконок в заголовках */
.card-header .card-title i {
    background: rgba(75, 96, 177, 0.1);
    padding: 8px;
    border-radius: 8px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-type-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.folder-type-student {
    background: #e3f2fd;
    color: #1565c0;
}

.folder-type-teacher {
    background: #fce4ec;
    color: #c62828;
}

.folder-type-common {
    background: #e8f5e9;
    color: #2e7d32;
}

.folder-type-group {
    background: #fff3e0;
    color: #e65100;
}

.folder-type-lesson {
    background: #f3e5f5;
    color: #6a1b9a;
}

.folder-type-subject {
    background: #e0f7fa;
    color: #00695c;
}
@media (max-width: 767.98px) {
  #sidebar-wrapper {
    margin-left: -15rem;
    transition: margin 0.25s ease-out;
  }
  /* Должно быть правило, которое возвращает его при открытии: */
  #sidebar-wrapper.toggled,
  #wrapper.toggled #sidebar-wrapper {
    margin-left: 0 !important;
    position: fixed;
    z-index: 1050;
  }
}