:root {
    --accent-color: #c5ff00;
    --accent-dark: #a8e000;
    --accent-light: #d9ff4d;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #1d1d1d;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-accent: #c5ff00;
    --border-color: #404040;
    --border-light: #333333;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.2s ease;
    --sidebar-w: 240px;
    --mobile-bottombar-height: 60px;
    --mobile-edge-inset: 5px;
    --bs-table-bg:#232323;
}

.btn-outline-secondary {
    --bs-btn-color: #b6b6b6;
    --bs-btn-border-color: #b6b6b6;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #000000;
    --bs-btn-hover-border-color: #b6b6b6;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #b6b6b6;
    --bs-btn-active-bg: #000000;
    --bs-btn-active-border-color: #b6b6b6;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #6c757d;
    --bs-gradient: none;
}

.input-group-sm>.btn, .input-group-sm>.form-control, .input-group-sm>.form-select, .input-group-sm>.input-group-text {
    padding: 0px 0px 0px 13px;
    font-size: .875rem;
    border-radius: var(--bs-border-radius-sm);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}
.extra-small {
font-size: 10px;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none !important;
    color: inherit;
}

#mainWrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

body.page-reports #mainWrapper,
body.page-reports .main-content.reports-page,
body.page-reports .main-content.reports-page .container-fluid,
body.page-reports .main-content.reports-page .reports-row,
body.page-reports .main-content.reports-page .reports-sidebar-col {
    overflow: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-logo {
    flex-shrink: 0;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.sidebar-logo-img {
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.sidebar-logo-img.logo-red-pulse {
    filter: brightness(0) saturate(100%) invert(27%) sepia(100%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
    transform-origin: center center;
}

.sidebar-logo-img.logo-red-pulse.logo-shake-now {
    animation: logoShake 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes logoShake {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    10% {
        transform: translateX(-10px) rotate(-2deg);
    }
    20% {
        transform: translateX(10px) rotate(2deg);
    }
    30% {
        transform: translateX(-8px) rotate(-1.5deg);
    }
    40% {
        transform: translateX(8px) rotate(1.5deg);
    }
    50% {
        transform: translateX(-5px) rotate(-1deg);
    }
    60% {
        transform: translateX(5px) rotate(1deg);
    }
    70% {
        transform: translateX(-3px) rotate(-0.5deg);
    }
    80% {
        transform: translateX(3px) rotate(0.5deg);
    }
    90% {
        transform: translateX(-1px) rotate(0deg);
    }
}

.sidebar-controls {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.5rem;
    margin-top: 0.75rem;
}

.mode-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 12px;
}

.mode-btn:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    border-color: var(--accent-color);
}

.help-video-open,
.help-video-open i {
    color: #000000 !important;
}

.help-video-open:hover {
    color: #000000 !important;
}

.help-video-open:hover i {
    color: #000000 !important;
}

.sidebar-nav {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.sidebar-nav .nav-item {
    margin: 0;
    flex-shrink: 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
    position: relative;
}

.sidebar-nav .nav-link i {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-nav .nav-link span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav .nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left-color: var(--accent-color);
}

.sidebar-nav .nav-link.active {
    background: var(--bg-tertiary);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.sidebar-nav .nav-link .badge {
    flex-shrink: 0;
}

.sidebar-nav .nav-link #coldLeadBadge {
    min-width: 30px !important;
    max-width: 30px !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
    font-family: 'Unbounded', sans-serif !important;
    font-weight: 800 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    background-color: #dc3545 !important;
    color: #fff !important;
}

.sidebar-nav .nav-link #coldLeadBadge.d-none,
#coldLeadBadge.d-none {
    display: none !important;
}

body.compact-mode .sidebar {
    width: 72px;
}

body.compact-mode .sidebar-logo {
    padding: 0.5rem;
}

body.compact-mode .sidebar-logo-img {
    max-width: 40px;
}

body.compact-mode .sidebar-nav .nav-link span,
body.compact-mode .sidebar-nav .nav-link .badge {
    display: none;
}

body.compact-mode .sidebar-nav .nav-link {
    justify-content: center;
    padding-left: 0.75rem;
}

.sidebar-nav-wrap {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-nav-wrap .sidebar-nav {
    flex: 1 1 0;
    min-height: 0;
}

.menu-edit-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
}

.menu-edit-actions .menu-edit-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.menu-edit-actions .menu-edit-save {
    background: var(--accent-color);
    color: var(--bg-primary);
    border-color: var(--accent-color);
}

.menu-edit-actions .menu-edit-save:hover:not(:disabled) {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--bg-primary);
}

.menu-edit-actions .menu-edit-cancel {
    background: var(--bg-tertiary);
}

.menu-edit-actions .menu-edit-cancel:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.menu-edit-actions .menu-edit-reset {
    background: var(--bg-tertiary);
}

.menu-edit-actions .menu-edit-reset:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-nav .nav-item {
    position: relative;
}

.sidebar-nav .nav-item .menu-item-eye {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-nav .nav-item .menu-item-eye:hover {
    color: var(--accent-color);
    background: var(--bg-tertiary);
}

.sidebar-nav .nav-item.menu-item-hidden {
    display: none;
}

.sidebar.sidebar-menu-edit .sidebar-nav .nav-item.menu-item-hidden {
    display: flex;
    opacity: 0.6;
}

.sidebar.sidebar-menu-edit .sidebar-nav .nav-item.menu-item-hidden .nav-link {
    text-decoration: line-through;
}

.sidebar.sidebar-menu-edit .sidebar-nav .nav-item .menu-item-eye.d-none {
    display: inline-flex !important;
}

.sidebar.sidebar-menu-edit .sidebar-nav .nav-link {
    padding-right: 2.25rem;
}

.sidebar.sidebar-menu-edit .sidebar-nav .nav-item {
    cursor: grab;
}

.sidebar.sidebar-menu-edit .sidebar-nav .nav-item:active {
    cursor: grabbing;
}

.sidebar.sidebar-menu-edit .sidebar-nav .nav-item.menu-drag-over {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.menu-drop-indicator {
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 2px 0.5rem;
    flex-shrink: 0;
    pointer-events: none;
}

.sidebar-compact-tooltip {
    position: fixed;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 11000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.sidebar-compact-tooltip.show {
    opacity: 1;
    visibility: visible;
}

body.compact-mode .main-content {
    margin-left: 72px;
}

@media (max-width: 767.98px) {
    body.compact-mode .sidebar,
    body.compact-mode .main-content {
        margin-left: 0;
    }
}

.main-content {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-w);
    padding: 1.25rem;
    min-height: 100vh;
    background: var(--bg-primary);
}

.main-content .row > [class*="col-"] {
    min-width: 0;
}

.main-content .row > [class*="col-"] > .card {
    min-width: 0;
}

.reports-row {
    align-items: stretch;
}

.reports-sidebar-col {
    flex: 0 0 100%;
    position: relative;
}

.reports-content-col {
    flex: 1 1 0%;
    min-width: 0;
}

.reports-sidebar {
    position: sticky;
    top: 1.25rem;
    align-self: flex-start;
    z-index: 10;
}

.reports-type-btns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.reports-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
    border-radius: var(--radius-md);
    width: 100%;
    min-width: 0;
}

.reports-type-btn i {
    font-size: 1.25rem;
}

.reports-type-btn.active {
    background: var(--accent-color);
    color: var(--bg-primary);
    border-color: var(--accent-color);
}

.reports-content.card {
    min-height: 50vh;
}

.reports-placeholder {
    color: var(--text-muted);
}

.reports-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.reports-filters-row .reports-filter-field {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.reports-filters-row .reports-filter-field .input-group {
    width: 100% !important;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.reports-filters .input-group {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
}

.reports-filters .input-group .input-group-text {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    display: flex;
    align-items: center;
}

.reports-filters .input-group .form-control,
.reports-filters .input-group .form-select,
.reports-filters .input-group input[type="text"],
.reports-filters .input-group .flatpickr-input {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.reports-filters .input-group .select2-container {
    width: 100% !important;
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;
    display: flex;
    align-items: stretch;
    max-width: 100%;
}

.reports-filters .input-group .select2-container > .selection {
    width: 100%;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.reports-filters .input-group .select2-container .select2-selection,
.reports-filters .input-group .select2-container .select2-selection--single {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    flex: 1;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    border-left-color: var(--border-color);
}

.reports-filters .input-group .select2-container .select2-selection__rendered {
    line-height: inherit;
}

.report-results .table {
    font-size: 0.875rem;
}

.reports-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reports-cards-row {
    display: grid;
    gap: 1rem;
}

.reports-cards-row-70-30 {
    grid-template-columns: 1fr;
}

.reports-cards-row-50-50 {
    grid-template-columns: 1fr;
}

.reports-cards-row-33 {
    grid-template-columns: 1fr;
}

.reports-cards-row-six {
    grid-template-columns: repeat(2, 1fr);
}

.reports-cards-row-full {
    grid-template-columns: 1fr;
}

.reports-cards .reports-card {
    min-height: 4rem;
    container-type: inline-size;
    container-name: report-card;
}

.reports-card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reports-card-stat-value {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: clamp(0.75rem, 12cqw, 2.25rem);
    line-height: 1.2;
    white-space: nowrap;
    max-width: 100%;
}

.reports-card-stat-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .reports-cards-row-70-30 {
        grid-template-columns: 70fr 30fr;
    }

    .reports-cards-row-50-50 {
        grid-template-columns: 1fr 1fr;
    }

    .reports-cards-row-33 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .reports-cards-row-six {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .reports-cards-row-six {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 992px) {
    .reports-row {
        min-height: calc(100vh - 5rem);
    }

    .reports-sidebar-col {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .reports-content-col {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .reports-content.card {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .reports-content.card .card-body {
        flex: 1 1 0;
        min-height: 0;
        overflow-y: auto;
    }
}

@media (max-width: 991.98px) {
    .reports-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 575.98px) {
    .reports-type-btns {
        grid-template-columns: repeat(2, 1fr);
    }

    .reports-type-btn span {
        font-size: 0.7rem;
    }

    .reports-detail .btn-group {
        flex-direction: column;
    }

    .reports-detail .btn-group .btn {
        border-radius: var(--radius-sm);
    }
}

.student-form i,
.teacher-form i {
    color: var(--accent-color);
}

.student-form .contact-clickable,
.teacher-form .contact-clickable {
    cursor: pointer;
}

.preferred-contact-btn-group {
    flex-wrap: nowrap;
}
.preferred-contact-btn-group .btn {
    min-width: 2.75rem;
    height: 40px;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: #fff !important;
}
.preferred-contact-btn-group .btn {
    gap: 0.35rem;
}
.preferred-contact-btn-group .btn i {
    font-size: 1.25rem;
    color: #fff !important;
}
.preferred-contact-btn-group .btn .preferred-contact-label {
    font-size: 0.75rem;
    color: #fff !important;
}
.preferred-contact-btn-group .btn-check:checked + .btn {
    background: #000000 !important;
    border: 1px solid var(--border-color) !important;
}
.preferred-contact-btn-group .btn-check:checked + .btn i,
.preferred-contact-btn-group .btn-check:checked + .btn .preferred-contact-label {
    color: var(--accent-color) !important;
}

.contact-fields-row {
    display: flex;
    flex-wrap: nowrap;
}
.contact-fields-row .contact-field-col {
    flex: 1 1 0;
    min-width: 0;
    transition: opacity 0.25s ease, max-width 0.25s ease, flex 0.25s ease, padding 0.25s ease, margin 0.25s ease;
}
.contact-fields-row .contact-field-col.contact-field-hidden {
    opacity: 0;
    max-width: 0;
    flex: 0 0 0 !important;
    min-width: 0 !important;
    overflow: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: none !important;
    pointer-events: none;
}

.view-conditional.view-mode-hidden {
    display: none !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-family: 'Unbounded', sans-serif;
}
.rounded {
    border-radius: 15px !important;
}

:root {
    --bs-border-color: #7f8285;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
}

.card-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.875rem 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 1rem;
    color: var(--text-primary);
}

.card-body2 {
border:1px solid #404040 !important;
border-radius: 14px;
}

.btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
   
    
}

.btn:hover {
    color: #404040;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.btn:hover i {
    color: #404040;
  
}

.lead-items {
    background:#ffffff24;
    }

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-primary);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--bg-primary);
    border-color: var(--accent-dark);
}

.btn-secondary, .btn-light {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover, .btn-light:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    border-color: var(--accent-color);
}

.btn-success, .btn-danger, .btn-warning, .btn-info {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-success:hover, .btn-danger:hover, .btn-warning:hover, .btn-info:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    border-color: var(--accent-color);
}

.crm-btn-save {
    background: var(--accent-color) !important;
    color: var(--bg-primary) !important;
    border-color: var(--accent-color) !important;
    font-weight: 600;
}

.crm-btn-save:hover,
.crm-btn-save:focus {
    background: var(--accent-dark) !important;
    color: var(--bg-primary) !important;
    border-color: var(--accent-dark) !important;
}

.crm-entity-modal .modal-footer .crm-btn-save,
.crm-entity-modal .crm-modal-footer-row .crm-btn-save,
.crm-entity-modal .sale-footer-row .crm-btn-save {
    min-width: 8rem;
}

@media (max-width: 767.98px) {
    .crm-entity-modal .modal-footer .crm-btn-save,
    .crm-entity-modal .crm-modal-footer-row .crm-btn-save,
    .crm-entity-modal .sale-footer-row .crm-btn-save {
        width: 100%;
        min-width: 0;
    }
}

.btn:disabled,
.btn.disabled,
button:disabled,
button.disabled {
    background: #555555 !important;
    color: #999999 !important;
    border-color: #555555 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.btn:disabled:hover,
.btn.disabled:hover,
button:disabled:hover,
button.disabled:hover {
    background: #555555 !important;
    color: #999999 !important;
    border-color: #555555 !important;
}

.avatar-circle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--accent-color);
    overflow: hidden;
    background: #444444;
    color: #ffffff;
    flex-shrink: 0;
}

.avatar-circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-circle-text {
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
}

.avatar-circle-initials {
    background-color: var(--avatar-bg, #444444) !important;
    color: #ffffff !important;
}

.avatar-circle-initials .avatar-circle-text {
    font-size: var(--avatar-font, 15px);
    color: #ffffff !important;
}

.btn-outline-danger:hover {
background: #dc3545;
color:#000000 !important;
border-color:#dc3545;
}

.form-control:not(.dashboard-search-input),
.form-select,
input[type="text"]:not(#search-low-lessons):not(#searchInput),
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
   
    padding: 0.5rem 0.75rem;
    font-size: 16px;
    min-height: 40px;
    height: 40px;
}

textarea {
    height: auto;
    min-height: 80px;
}

.form-control:focus, .form-select:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    border: 1px solid var(--accent-color) !important;
   
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #b1b1b1 !important;
}

.input-group-text {
    background-color: #b1b1b1 !important;
    border-color: #b1b1b1 !important;
    color: #1a1a1a !important;
    
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    min-width: 2.5rem;
}

.input-group .input-group-text:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-group-text i {
    color: #1a1a1a !important;
}

.form-label, label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
}

.users-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg-tertiary);
    box-shadow: 0 1px 0 var(--border-color);
}

.table {
    background: var(--bg-card);
    color: var(--text-primary);
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
}

.table thead th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.table tbody td:first-child {
    padding-left: 1.25rem;
}

.table tbody td:last-child {
    padding-right: 1.25rem;
}

.table tbody td,
.table-dark tbody tr td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
    transition: background var(--transition);
    background-color: #1b1b1b !important;
}

.table tbody tr:hover td,
.table.table-hover tbody tr:hover td,
.table-dark tbody tr:hover td {
    background-color: #232323 !important;
}

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

.table tbody tr:last-child td:first-child {
    padding-left: 1.25rem;
}

.table tbody tr:last-child td:last-child {
    padding-right: 1.25rem;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
}

.modal-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.modal-open .modal-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.65);
    opacity: 1;
}
.modal-open .modal-backdrop.fade {
    opacity: 1;
}
.modal-open .modal-backdrop.show {
    opacity: 1;
}

.page-schedule .container-fluid {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.page-schedule .schedule-calendar-row {
    flex: 1;
    min-height: 0;
    display: flex;
}
.page-schedule .schedule-calendar-col {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .page-schedule .schedule-calendar-col {
        flex: 0 0 72%;
        max-width: 72%;
    }
    .page-schedule .schedule-today-col {
        flex: 0 0 28%;
        max-width: 28%;
    }
}
.page-schedule .schedule-calendar-col .card-body2 {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.page-schedule #scheduleCalendar {
    width: 100%;
    min-height: 0;
}
.page-schedule #scheduleCalendar.fc {
    min-height: 0;
}
.page-schedule #scheduleCalendar .fc-daygrid-day-frame {
    min-height: 0;
    overflow: hidden;
}

.page-schedule .fc-daygrid-body td {
    overflow: hidden !important;
    vertical-align: top !important;
}

.page-schedule .fc-daygrid-day-frame {
    position: relative !important;
    min-height: 0 !important;
}

.page-schedule .fc-daygrid-day-top {
    position: relative;
    z-index: 1;
}

.page-schedule .fc-daygrid-day-events {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
}

.page-schedule .fc-daygrid-day-events .fc-day-lessons-count {
    pointer-events: auto !important;
}

.page-schedule .fc-daygrid-event-harness,
.page-schedule .fc-daygrid-event {
    display: none !important;
}

.fc-day-lessons-count {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.fc-day-lessons-count:hover {
    background: rgba(197, 255, 0, 0.15);
}

.page-schedule .students-table-classroom-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
    font-weight: 400;
}

.page-schedule .students-table-classroom-name {
    font-weight: 700;
}

.page-schedule .students-table-classroom-desc {
    font-size: 0.85em;
    text-transform: lowercase;
    font-weight: 400;
}
.schedule-day-card-header-two-lines {
    display: block;
}
.schedule-day-card-class-line {
    display: block;
    margin-bottom: 0.25rem;
}
.schedule-day-card-time-line {
    display: block;
}

.schedule-day-card .avatar-circle,
.schedule-day-card .schedule-day-card-avatar {
    width: 56px !important;
    height: 56px !important;
    flex-shrink: 0;
}

.schedule-day-card {
background: #1b1b1b;
}

.schedule-rent-card .schedule-day-card-person a,
.schedule-rent-card .schedule-day-card-person span.text-white {
    font-size: 0.8rem;
    font-weight: 600;
}

.page-schedule .schedule-day-card-person a {
    font-size: 0.8rem;
    font-weight: 600;
}

.page-schedule .schedule-day-card-teacher-col {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0.75rem;
}

#widget-lessons-today .dashboard-lessons-today .schedule-day-card-person a,
.dashboard-lessons-today .schedule-day-card-person a {
    font-size: 0.8rem;
    font-weight: 600;
}
#widget-lessons-today .dashboard-lessons-today .schedule-day-card-person a + a,
.dashboard-lessons-today .schedule-day-card-person a + a {
    margin-top: 0.1rem;
}
#widget-lessons-today .dashboard-lessons-today .schedule-day-card-teacher-col,
.dashboard-lessons-today .schedule-day-card-teacher-col {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0.75rem;
}
#widget-lessons-today .dashboard-lessons-today .students-table-classroom-desc,
.dashboard-lessons-today .students-table-classroom-desc {
    font-size: 0.85em;
    text-transform: lowercase;
    font-weight: 400;
}

.nav-tabs {
    border-bottom: none !important;
    flex-wrap: wrap;
    gap: 0.25rem;
    background: #000;
    padding: 5px;
    border-radius: 10px;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-tabs .nav-link.active {
    background: var(--bg-card);
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.dashboard-widget-link {
    display: block;
    min-width: 0;
    overflow: hidden;
}

.dashboard-widget-link .d-flex {
    min-width: 0;
}

.dashboard-widget-link .fw-bold,
.student-widget .fw-bold,
.service-widget .fw-bold,
.card.p-2.h-100.text-white .fw-bold {
    font-size: 1.6rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-widget-link small,
.student-widget small,
.service-widget small,
.card.p-2.h-100.text-white small {
    font-size: 0.7rem;
    opacity: 0.9;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-widget-active {
    border: 1px solid var(--accent-color) !important;
}

.widget-value-zero .dashboard-widget-icon,
.widget-value-zero .widget-icon,
.widget-value-zero > .d-flex > i.me-3 {
    color: #5c5c5c !important;
}

.students-list-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-height: 100vh;
    overflow: hidden;
}

body.page-settings .main-content .card.students-list-page {
    max-height: none;
    overflow: visible;
    flex: none;
    min-height: auto;
}

.students-list-page .students-list-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.students-list-page .students-table-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.students-list-page .expenses-table-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.students-list-page .expenses-table-section .students-table-scroll-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.settings-users-table-section,
.settings-table-section {
    max-height: 70vh;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.settings-users-table-section .students-table-scroll-wrap,
.settings-table-section .students-table-scroll-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.students-list-page .students-table-row {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
    gap: 1rem;
}

.students-list-page .students-table-left-col {
    flex: 0 0 52%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.students-list-page .students-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 0;
    margin-bottom: 0.75rem;
    width: 100%;
    height: var(--students-toolbar-height, 2.75rem);
    min-height: var(--students-toolbar-height, 2.75rem);
    box-sizing: border-box;
}

.students-list-page .student-panel-top-spacer {
    flex-shrink: 0;
    height: var(--students-toolbar-height, 2.75rem);
    min-height: var(--students-toolbar-height, 2.75rem);
    margin-bottom: 0.75rem;
}

.students-list-page .students-table-scroll-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.375rem;
}

.students-list-page .students-table-scroll-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg-secondary, #2d2d2d);
    box-shadow: 0 1px 0 rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.12);
    vertical-align: middle;
}

.students-list-page .students-table-scroll-wrap thead th:last-child {
    border-right: none;
}

.students-list-page .students-table-scroll-wrap tbody td {
    border-right: 1px solid rgba(255,255,255,0.12);
}

.students-list-page .students-table-scroll-wrap tbody td:last-child {
    border-right: none;
}

.students-list-page .students-table-scroll-wrap thead th:nth-child(1),
.students-list-page .students-table-scroll-wrap tbody td:nth-child(1) {
    width: 300px;
    max-width: 300px;
}

.students-list-page .students-table-scroll-wrap thead th:nth-child(2),
.students-list-page .students-table-scroll-wrap tbody td:nth-child(2) {
    max-width: 80px;
}

.students-list-page #servicesTable thead th:nth-child(2),
.students-list-page #servicesTable tbody td:nth-child(2) {
    width: 250px;
    max-width: 250px;
}

.students-list-page #teachersTable thead th:nth-child(2),
.students-list-page #teachersTable tbody td:nth-child(2) {
    width: 90px;
    max-width: 90px;
    text-align: center;
}

.students-list-page #teachersTable .students-table-teacher-cell {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.students-list-page #teachersTable .students-table-teacher-cell .students-table-teacher-link {
    flex: 0 0 calc((100% - 30px) / 6);
    max-width: calc((100% - 30px) / 6);
    min-width: 0;
    box-sizing: border-box;
}

.students-list-page #teachersTable th.col-teacher-students,
.students-list-page #teachersTable td.col-teacher-students {
    width: 90px;
    max-width: 90px;
    text-align: center;
}

.students-list-page #teachersTable th.col-teacher-earnings,
.students-list-page #teachersTable td.col-teacher-earnings {
    width: 130px;
    max-width: 130px;
    text-align: center;
}

.students-list-page #teachersTable th.col-teacher-week,
.students-list-page #teachersTable td.col-teacher-week {
    width: 120px;
    max-width: 120px;
    text-align: center;
    white-space: normal;
}

.students-list-page #teachersTable th.col-teacher-next,
.students-list-page #teachersTable td.col-teacher-next {
    width: 200px;
    max-width: 200px;
}

.students-list-page .students-table-scroll-wrap thead th:nth-child(3),
.students-list-page .students-table-scroll-wrap tbody td:nth-child(3) {
    width: 200px;
    max-width: 200px;
}

.students-list-page #servicesTable thead th:nth-child(3),
.students-list-page #servicesTable thead th:nth-child(4),
.students-list-page #servicesTable thead th:nth-child(5),
.students-list-page #servicesTable thead th:nth-child(6),
.students-list-page #servicesTable tbody td:nth-child(3),
.students-list-page #servicesTable tbody td:nth-child(4),
.students-list-page #servicesTable tbody td:nth-child(5),
.students-list-page #servicesTable tbody td:nth-child(6) {
    width: 120px;
    max-width: 120px;
    text-align: center;
}

.students-list-page #servicesTable thead th:nth-child(7),
.students-list-page #servicesTable tbody td:nth-child(7) {
    width: 280px;
    max-width: 280px;
    white-space: normal;
}

@media (min-width: 768px) {
    .services-table-compact #servicesTable thead th:nth-child(8),
    .services-table-compact #servicesTable tbody td:nth-child(8) {
        width: 190px;
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .students-list-page #servicesTable thead th:nth-child(9),
    .students-list-page #servicesTable tbody td:nth-child(9),
    .students-list-page #servicesTable .students-table-actions-cell {
        width: 120px;
        max-width: 120px;
        white-space: nowrap;
        text-align: right;
        vertical-align: middle;
    }

    .students-list-page #servicesTable .services-td-actions .d-flex {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        min-height: 32px;
    }

    .services-table-compact #servicesTable tbody td.services-td-actions {
        vertical-align: middle;
    }

    .students-list-page #servicesTable .services-td-actions .badge,
    .students-list-page #servicesTable .services-td-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 32px;
        min-height: 32px;
        margin: 0;
        line-height: 1;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .students-list-page #servicesTable .services-td-actions .btn {
        width: 32px;
        min-width: 32px;
        padding: 0;
    }

    .students-list-page #servicesTable .services-td-actions .badge {
        padding: 0 0.5rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .students-list-page #servicesTable .services-td-actions .badge i,
    .students-list-page #servicesTable .services-td-actions .btn i {
        margin: 0;
        font-size: 0.875rem;
        line-height: 1;
    }
}

.services-list-page .services-action-label {
    display: none;
}

.services-table-compact .services-table {
    font-size: 0.8125rem;
}

.services-table-compact .services-table thead th,
.services-table-compact .services-table tbody td {
    padding: 0.35rem 0.5rem;
    vertical-align: top;
}

.services-table-compact #servicesTable thead th:nth-child(1),
.services-table-compact #servicesTable tbody td:nth-child(1) {
    width: 180px;
    max-width: 180px;
}

.services-table-compact #servicesTable thead th:nth-child(2),
.services-table-compact #servicesTable tbody td:nth-child(2) {
    width: 200px;
    max-width: 200px;
}

.services-table-compact #servicesTable thead th:nth-child(3),
.services-table-compact #servicesTable thead th:nth-child(4),
.services-table-compact #servicesTable thead th:nth-child(5),
.services-table-compact #servicesTable thead th:nth-child(6),
.services-table-compact #servicesTable tbody td:nth-child(3),
.services-table-compact #servicesTable tbody td:nth-child(4),
.services-table-compact #servicesTable tbody td:nth-child(5),
.services-table-compact #servicesTable tbody td:nth-child(6) {
    width: 88px;
    max-width: 88px;
}

.services-table-compact #servicesTable thead th:nth-child(7),
.services-table-compact #servicesTable tbody td:nth-child(7) {
    width: 220px;
    max-width: 220px;
}

.services-table-compact #servicesTable thead th:nth-child(8),
.services-table-compact #servicesTable tbody td:nth-child(8) {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-schedule .schedule-widgets-row .card {
    padding: 0.5rem !important;
}

.page-schedule .schedule-widgets-row .widget-icon {
    font-size: 2rem !important;
}

.page-schedule .schedule-widgets-row .fw-bold {
    font-size: 1.1rem;
}

.student-duplicate-group .card-header,
.student-duplicate-group .card-footer {
    background: rgba(255, 255, 255, 0.03);
}

.students-list-page .students-table-scroll-wrap thead th:nth-child(5),
.students-list-page .students-table-scroll-wrap tbody td:nth-child(5) {
    width: 100px;
    max-width: 100px;
}

.students-list-page #rentTable thead th:nth-child(6),
.students-list-page #rentTable tbody td:nth-child(6) {
    width: 100px;
    max-width: 100px;
    white-space: nowrap;
}

.students-list-page #expensesTable thead th:nth-child(1),
.students-list-page #expensesTable tbody td:nth-child(1) {
    width: 450px;
    max-width: 450px;
}

.students-list-page #expensesTable thead th:nth-child(2),
.students-list-page #expensesTable tbody td:nth-child(2) {
    width: 130px;
    max-width: 130px;
    text-align: center;
}

.students-list-page #expensesTable thead th:nth-child(3),
.students-list-page #expensesTable tbody td:nth-child(3) {
    width: 130px;
    max-width: 130px;
    text-align: center;
}

.students-list-page #expensesTable thead th:nth-child(4),
.students-list-page #expensesTable tbody td:nth-child(4) {
    width: 130px;
    max-width: 130px;
    text-align: center;
}

.students-list-page #expensesTable thead th:nth-child(5),
.students-list-page #expensesTable tbody td:nth-child(5) {
    width: 130px;
    max-width: 130px;
    text-align: center;
}

.students-list-page #expensesTable thead th:nth-child(6),
.students-list-page #expensesTable tbody td:nth-child(6) {
    width: 150px;
    max-width: 150px;
}

.students-list-page #expensesTable thead th:nth-child(7),
.students-list-page #expensesTable tbody td:nth-child(7) {
    width: 80px;
    max-width: 80px;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

.students-list-page #expensesTable .students-table-actions-cell {
    text-align: center;
    vertical-align: middle;
}

.students-list-page .students-table-empty-col {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

@media (max-width: 1919.98px) {
    .students-list-page .students-table-empty-col {
        display: none !important;
    }
    .students-list-page .students-table-left-col {
        flex: 1 1 100%;
    }
}

.students-list-page .students-table-student-cell {
    min-width: 0;
}

.students-list-page .students-table-student-cell .students-table-student-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
}

.students-list-page .students-table-student-cell .small,
.students-list-page .students-table-student-cell .d-flex.small {
    font-size: 0.75rem;
}

.students-list-page .students-table-student-cell .dashboard-contact-icon {
    font-size: 0.85em;
}

.students-list-page .students-table-teacher-cell {
    font-size: 0.875rem;
    font-weight: 400;
    font-family: 'Unbounded', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.students-list-page .students-table-teacher-cell .avatar-circle {
    flex-shrink: 0;
}

.students-list-page .students-table-teacher-cell .students-table-teacher-link {
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
}

.students-list-page .students-table-teacher-cell .students-table-teacher-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.students-list-page .students-table-teacher-cell .text-muted {
    font-size: inherit;
    font-weight: 400;
}

.students-list-page .students-table-actions-cell {
    white-space: nowrap;
}

.students-list-page #servicesTable .students-table-actions-cell {
    text-align: center;
    vertical-align: middle;
}

.students-list-page #servicesCatalogTable thead th:nth-child(2),
.students-list-page #servicesCatalogTable thead th:nth-child(4),
.students-list-page #servicesCatalogTable thead th:nth-child(5),
.students-list-page #servicesCatalogTable tbody td:nth-child(2),
.students-list-page #servicesCatalogTable tbody td:nth-child(4),
.students-list-page #servicesCatalogTable tbody td:nth-child(5) {
    text-align: center;
    white-space: nowrap;
    width: auto;
    max-width: none;
}

.students-list-page #servicesCatalogTable thead th:nth-child(3),
.students-list-page #servicesCatalogTable tbody td:nth-child(3) {
    width: 200px;
    max-width: 200px;
    text-align: center;
    white-space: nowrap;
}

.students-list-page #servicesCatalogTable thead th:nth-child(6),
.students-list-page #servicesCatalogTable tbody td:nth-child(6) {
    width: 100px;
    max-width: 100px;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

.students-list-page #servicesCatalogTable .students-table-actions-cell {
    text-align: center;
    vertical-align: middle;
}

.students-list-page #servicesCatalogTable tbody tr {
    cursor: pointer;
}

.students-list-page #servicesCatalogTable tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.students-list-page .students-table-actions-cell .d-flex {
    flex-wrap: nowrap;
}

.students-list-page .students-table-btn-delete,
.students-list-page .students-table-btn-active {
    padding: 0.25rem 0.5rem;
    border-width: 1px;
    background: transparent;
}

.students-list-page .students-table-btn-delete:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

.students-list-page .students-table-btn-active,
.students-list-page .students-table-btn-active:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.students-list-page .students-table-btn-active:hover {
    background: color-mix(in srgb, var(--accent-color) 15%, transparent);
}

.student-delete-confirm-modal {
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.25);
}

.student-delete-confirm-modal .modal-header,
.student-delete-confirm-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.students-list-page .students-table-next-lesson-cell {
    font-size: 0.875rem;
}

.students-list-page .students-table-classroom-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
    font-weight: 400;
}

.students-list-page .students-table-classroom-name {
    font-weight: 700;
}

.students-list-page .students-table-classroom-desc {
    font-size: 0.85em;
    text-transform: lowercase;
    font-weight: 400;
}

.students-teacher-tooltip.tooltip .tooltip-inner {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    padding: 0.5rem 0.75rem;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    max-width: 220px;
}

.students-teacher-tooltip.tooltip .tooltip-arrow::before {
    border-top-color: #000;
    border-bottom-color: #000;
    border-left-color: #000;
    border-right-color: #000;
}

.form-control:focus {
    border-color: none !important; 
    box-shadow: none !important;
}

.student-panel-wrap {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-secondary, #2d2d2d);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
}

.student-panel-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.student-panel-footer {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: var(--bg-secondary, #2d2d2d);
}

.student-panel-body {
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow: auto;
    padding: 1rem;
    transition: filter 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.student-panel-body.student-panel-blurred {
    filter: blur(30px);
    background: #000;
    pointer-events: none;
}

.student-panel-body .student-form,
.student-panel-body #studentPanelFormContainer {
    max-width: 100%;
    min-width: 0;
}

.student-panel-body .student-form .row {
    margin-left: 0;
    margin-right: 0;
}

.student-panel-body .student-form [class*="col-"] {
    max-width: 100%;
}

a.btn-form-action.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.375rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.login-overlay {
    display: none !important;
}

body.login-wrapper .login-overlay {
    display: block !important;
}

body.login-wrapper {
    background: transparent;
}

.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.login-card .card-header,
.login-card .card-footer {
    background: transparent;
    border: none;
}

.login-logo {
    max-width: 160px;
    height: auto;
    filter: brightness(0) invert(1);
}

.mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10680;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: var(--mobile-bottombar-height, 60px);
    left: 0;
    height: auto;
    max-height: min(88vh, calc(100dvh - var(--mobile-bottombar-height, 60px) - 0.5rem));
    z-index: 10700;
    background: var(--bg-secondary);
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    padding: 0;
}

.mobile-sidebar.show {
    transform: translateY(0);
}

.mobile-sidebar-handle {
    width: 2.5rem;
    height: 0.25rem;
    border-radius: 999px;
    background: var(--border-color);
    margin: 0.65rem auto 0.35rem;
    flex-shrink: 0;
}

body.mobile-menu-open {
    overflow: hidden;
}

.mobile-sidebar-inner {
    padding: 0 1rem 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    max-height: min(88vh, calc(100dvh - var(--mobile-bottombar-height, 60px) - 0.5rem));
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-sidebar-logout-wrap {
    margin-top: auto;
    padding-top: 1rem;
    padding-bottom: 10px;
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-sidebar-logout-wrap::after {
    content: "";
    display: block;
    height: 5px;
    flex-shrink: 0;
}

.mobile-sidebar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(220, 53, 69, 0.7);
    background: rgba(220, 53, 69, 0.15);
    color: #f87171;
}

.mobile-sidebar-logout:hover {
    background: rgba(220, 53, 69, 0.25);
    border-color: #dc3545;
    color: #fca5a5;
}

.mobile-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.mobile-sidebar .nav-link.active {
    color: var(--accent-color);
}

.mobile-sidebar .nav-link i {
    flex-shrink: 0;
}

.mobile-sidebar .mobile-logo {
    padding-top: 0;
    padding-bottom: 0.5rem;
}

.mobile-sidebar .mobile-logo .sidebar-logo-img {
    width: 120px !important;
}

.mobile-sidebar .mobile-logo .sidebar-controls {
    margin-top: 0.5rem !important;
}

.mobile-sidebar-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    flex: 1 0 auto;
}

.mobile-sidebar .mobile-sidebar-nav-grid .nav-link {
    flex-direction: column;
    border-bottom: none;
    padding: 0.75rem 0.35rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
    justify-content: center;
    min-height: 4rem;
}

.mobile-sidebar .mobile-sidebar-nav-grid .nav-link i {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.mobile-sidebar .mobile-sidebar-nav-grid .nav-link span {
    font-size: 0.7rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mobile-sidebar .mobile-sidebar-nav-grid .nav-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
}

.mobile-sidebar .mobile-sidebar-nav-grid .nav-link.active {
    border-color: var(--accent-color);
    background: rgba(197, 255, 0, 0.1);
}

.mobile-bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10750;
    min-height: var(--mobile-bottombar-height, 60px);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 0.85rem 1.15rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
    padding-left: calc(1.15rem + env(safe-area-inset-left));
    padding-right: calc(1.15rem + env(safe-area-inset-right));
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
}

.mobile-bottombar-side-start {
    justify-self: start;
}

.mobile-bottombar-side-end {
    justify-self: end;
}

.mobile-bottombar-center {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 3rem;
}

.mobile-bottombar-logo img {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
}

.mobile-bottombar-menu {
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: var(--radius-md);
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-icon {
    position: relative;
    display: block;
    width: 1.5rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.mobile-menu-icon span {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 999px;
    background-color: #ffffff;
    transition: transform 0.28s ease, top 0.28s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.mobile-menu-icon span:nth-child(1) {
    top: 0;
}

.mobile-menu-icon span:nth-child(2) {
    top: 7px;
}

.mobile-menu-icon span:nth-child(3) {
    top: 14px;
}

.mobile-bottombar-menu.is-open .mobile-menu-icon span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.mobile-bottombar-menu.is-open .mobile-menu-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-bottombar-menu.is-open .mobile-menu-icon span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.mobile-bottombar-menu:hover,
.mobile-bottombar-menu:focus,
.mobile-bottombar-menu.is-open {
    color: var(--accent-color);
    background: transparent;
    outline: none;
    box-shadow: none;
}

.mobile-bottombar-menu:hover .mobile-menu-icon span,
.mobile-bottombar-menu:focus .mobile-menu-icon span,
.mobile-bottombar-menu.is-open .mobile-menu-icon span {
    background-color: var(--accent-color);
}

.mobile-bottombar img {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
}

.fab-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 999;
    transition: var(--transition);
}

.fab-btn:hover {
    background: var(--accent-dark);
}

.fab-label {
    display: none;
}

.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--text-primary) !important; }
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }
.bg-light { background: var(--bg-tertiary) !important; }
.badge-accent { background: var(--accent-color) !important; color: var(--bg-primary) !important; }

.dashboard-contact-icon {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.dashboard-contact-text {
    font-size: 0.9rem;
    text-transform: lowercase;
}

.dashboard-search-input {
    border: 1px solid var(--accent-color) !important;
    padding-right: 2rem;
    height: 40px;
    border-radius: 10px;
    background: #4f4e4e;
    box-shadow: 0px 0px 14px #00000088 inset;
}

.dashboard-search-input:focus {
    border-color: var(--accent-color) !important;
    background: #4f4e4e;
    box-shadow: 0px 0px 14px #00000088 inset;
    color: var(--text-primary) !important;

}

.dashboard-search-icon {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1rem;
    pointer-events: none;
}

.dashboard-teacher-name {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.25;
}

.dashboard-teacher-lastname {
    font-weight: 600;
}

.dashboard-teacher-firstname {
    font-size: 0.75em;
    color: var(--text-muted);
}

@media (max-width: 767.98px) {
    #widget-idle-teachers .idle-teacher-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    #widget-idle-teachers .dashboard-teacher-name {
        font-size: 0.7rem;
    }
    #widget-idle-teachers .idle-teacher-col .avatar-circle {
        width: 44px !important;
        height: 44px !important;
    }
}

@media (min-width: 1200px) {
    .idle-teacher-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

#widget-idle-teachers {
    max-height: 400px;
    overflow-y: auto;
}

#widget-idle-teachers .idle-teachers-row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

.dashboard-room-card {
    min-height: 80px;
}

.dashboard-room-card.text-white,
.dashboard-room-card.text-white .dashboard-room-name,
.dashboard-room-card.text-white .dashboard-room-desc {
    color: #fff !important;
}

.dashboard-room-card.text-dark .dashboard-room-name,
.dashboard-room-card.text-dark .dashboard-room-desc {
    color: #1a1a1a !important;
}

.dashboard-room-name,
.dashboard-room-desc {
    font-size: 0.85rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: 2.8em;
    overflow: hidden;
}

.dashboard-room-name {
    font-weight: 800;
    font-family: 'Unbounded', sans-serif;
    font-size: 1.35rem;
}

.dashboard-room-desc {
    text-transform: lowercase;
}

.dashboard-rooms-compact .dashboard-room-name,
.dashboard-rooms-compact .dashboard-room-desc {
    font-size: 0.75rem;
    max-height: none;
}

.dashboard-rooms-compact .dashboard-room-name {
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    .dashboard-low-lessons-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-low-lessons-title {
        margin-bottom: 0.5rem;
    }

    .dashboard-low-lessons-search {
        margin-left: 0 !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

.alert {
    border-radius: var(--radius-md);
    border: 1px solid transparent;
}

.select2-form-select-look .select2-selection--single {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    padding: 0 0.75rem !important;
    min-height: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-form-select-look .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.5 !important;
    color: var(--text-primary) !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.select2-form-select-look .select2-selection__rendered > span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.select2-form-select-look .select2-selection__rendered > span > span:last-child {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    min-width: 0 !important;
}

.select2-form-select-look .select2-selection__rendered .avatar-circle {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
}

.select2-form-select-look .select2-selection__rendered *:not(.avatar-circle):not(.avatar-circle *) {
    color: var(--text-primary) !important;
}

.select2-form-select-look .select2-selection__rendered .text-muted {
    color: var(--text-muted) !important;
}

.select2-form-select-look .select2-selection__clear,
.select2-container .select2-selection__clear {
    display: none !important;
}

.select2-form-select-look .select2-selection__arrow,
.select2-container .select2-selection__arrow {
    display: none !important;
}

.select2-form-select-look .select2-selection__placeholder {
    color: #b1b1b1 !important;
}

#scheduleModal .select2-dropdown {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    min-width: 400px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.45) !important;
}

#scheduleModal .select2-search--dropdown .select2-search__field {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--accent-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.375rem 0.5rem !important;
}

.select2-search--dropdown .select2-search__field {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--accent-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.375rem 0.5rem !important;
}

.select2-search--dropdown .select2-search__field:-webkit-autofill,
.select2-search--dropdown .select2-search__field:-webkit-autofill:hover,
.select2-search--dropdown .select2-search__field:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-tertiary) inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

#scheduleModal .select2-results__options {
    background: var(--bg-card) !important;
}

#scheduleModal .select2-results__option {
    min-height: 36px;
    display: flex;
    align-items: center;
    background: transparent !important;
    color: var(--text-primary) !important;
    padding: 0.5rem 0.75rem !important;
}

#scheduleModal .select2-results__option--highlighted {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

#scheduleModal .select2-results__option .avatar-circle {
    flex-shrink: 0;
}

.schedule-classroom-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

#scheduleModal .select2-results__message {
    color: var(--text-muted) !important;
    background: var(--bg-card) !important;
}

.select2-dropdown {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    min-width: 300px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.45) !important;
}

.select2-results__option {
    min-height: 36px;
    display: flex;
    align-items: center;
    background: transparent !important;
    color: var(--text-primary) !important;
    padding: 0.5rem 0.75rem !important;
}

.select2-results__option--highlighted {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

.select2-results__option .avatar-circle {
    flex-shrink: 0;
}

.select2-results__message {
    color: var(--text-muted) !important;
    background: var(--bg-card) !important;
}

.schedule-filters-form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 1rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.schedule-filters-form .schedule-filter-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 0;
    min-width: 0;
}

.schedule-filters-form .schedule-filter-item-btn {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.schedule-filters-form .schedule-filter-item-btn .btn {
    display: flex;
    align-items: center;
}

.schedule-filters-form .schedule-filter-item-btn .btn i {
    font-size: 1.15rem;
}

.schedule-filters-form .schedule-filter-item-btn .schedule-filter-label-invisible {
    flex-shrink: 0;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.5;
    visibility: hidden;
    white-space: nowrap;
    overflow: hidden;
}

.schedule-filters-form .schedule-filter-item-btn .schedule-filter-input-group .btn {
    border-radius: var(--radius-md);
}

.schedule-filters-form .schedule-filter-label {
    flex-shrink: 0;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    font-weight: 400;
    color: #a2a2a2;
}

.schedule-filters-form .schedule-filter-label-invisible {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.schedule-filters-form .schedule-filter-input-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    flex: 1 1 0;
    min-width: 0;
}

.schedule-filters-form .schedule-filter-input-group .input-group-text {
    flex-shrink: 0;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.schedule-filters-form .schedule-filter-input-group .form-control,
.schedule-filters-form .schedule-filter-input-group .flatpickr-input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.schedule-filters-form .schedule-filter-input-group .form-control:not(:last-child),
.schedule-filters-form .schedule-filter-input-group .flatpickr-input:not(:last-child) {
    border-radius: 0 !important;
}

.schedule-filters-form .schedule-filter-input-group .form-control,
.schedule-filters-form .schedule-filter-input-group .form-select,
.schedule-filters-form .schedule-filter-input-group .select2-container {
    flex: 1 1 0;
    min-width: 0;
}

.schedule-filters-form .schedule-filter-input-group .form-select + .select2-container {
    width: 100% !important;
}

.schedule-filters-form .schedule-filter-input-group .select2-container .select2-selection--single {
    border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

@media (max-width: 991.98px) {
    .schedule-filters-form {
        flex-wrap: wrap;
        align-items: flex-end;
    }
    .schedule-filters-form .schedule-filter-item {
        flex: 1 1 120px;
        min-width: 120px;
    }
}

.filters-block-spoiler-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition);
}
.filters-block-spoiler-toggle:hover {
    background: var(--bg-tertiary);
}
.filters-block-spoiler-toggle i {
    transition: transform var(--transition);
}
.filters-block-spoiler.is-open .filters-block-spoiler-toggle i {
    transform: rotate(180deg);
}
@media (min-width: 992px) {
    .filters-block-spoiler .filters-block-spoiler-toggle {
        display: none;
    }
}
@media (max-width: 991.98px) {
    .filters-block-spoiler .filters-block-spoiler-toggle {
        display: flex;
    }
    .filters-block-spoiler .card-body {
        display: none;
        padding-top: 0;
    }
    .filters-block-spoiler.is-open .card-body {
        display: block;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
}

.flatpickr-input {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.fc {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    overflow: visible !important;
    padding: 0px !important;
}

.fc-theme-standard .fc-scrollgrid {
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 3px !important;
    background: var(--bg-primary) !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
    border: none !important;
}

.fc-scrollgrid-section > td {
    border-radius: 0 !important;
}

.fc-scrollgrid-section-header {
    background: transparent !important;
    border: none !important;
}

.fc-scrollgrid-section-header table,
.fc-scrollgrid-section-header thead,
.fc-scrollgrid-section-header tbody,
.fc-scrollgrid-section-header tr,
.fc-scrollgrid-section-header td,
.fc-scrollgrid-section-header th {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.fc-scrollgrid-section-header::before,
.fc-scrollgrid-section-header::after,
.fc-scrollgrid-section-header table::before,
.fc-scrollgrid-section-header table::after,
.fc-scrollgrid-section-header thead::before,
.fc-scrollgrid-section-header thead::after {
    display: none !important;
    content: none !important;
}

.fc-col-header {
    border: none !important;
    background: transparent !important;
}

.fc-col-header table,
.fc-col-header thead,
.fc-col-header tbody,
.fc-col-header tr,
.fc-col-header td,
.fc-col-header th {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.fc-col-header table::before,
.fc-col-header table::after,
.fc-col-header thead::before,
.fc-col-header thead::after {
    display: none !important;
    content: none !important;
}

.fc-col-header-cell {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    padding: 0.6rem 0.5rem !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    position: relative !important;
}

.fc-col-header-cell::before,
.fc-col-header-cell::after {
    display: none !important;
    content: none !important;
}

.fc-scrollgrid-section-body {
    margin-top: 3px !important;
    background: transparent !important;
}

.fc-daygrid-body {
    padding-top: 0 !important;
}

.fc-daygrid-body tr:first-child td {
    padding-top: 0 !important;
}

.fc-daygrid-body td,
.fc-scrollgrid-sync-inner {
    border: none !important;
}

.fc-daygrid-body td {
    padding: 0 !important;
    vertical-align: top !important;
    background: var(--bg-card) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    min-height: 98px !important;
}

.fc-daygrid-day {
    background: transparent !important;
    color: var(--text-primary) !important;
    min-height: 98px !important;
    vertical-align: top !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.fc-daygrid-day-frame {
    border-radius: inherit !important;
    height: 100% !important;
    min-height: inherit !important;
    border: 2px solid #1a1a1a !important;
}

.fc-daygrid-body td:hover {
    background: var(--bg-tertiary) !important;
}

.fc-daygrid-body td.fc-day-today .fc-daygrid-day-frame,
.fc-daygrid-body td:has(.fc-day-today) .fc-daygrid-day-frame {
    border-radius: 10px !important;
    border: 2px solid var(--accent-color) !important;
}

.fc-daygrid-day-number {
    color: var(--text-primary) !important;
    font-weight: 500 !important;
    padding: 0.5rem !important;
    font-size: 0.85rem !important;
}

.fc-daygrid-day-number:hover {
    color: var(--accent-color) !important;
}

.fc-day-today .fc-daygrid-day-number {
    color: var(--bg-primary) !important;
    background: var(--accent-color) !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0.25rem !important;
    font-weight: 700 !important;
}

.fc-toolbar {
    background: var(--bg-tertiary) !important;
    padding: 0.875rem 1rem !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    margin-bottom: 0 !important;
}

.fc-header-toolbar {
    margin-bottom: 0 !important;
}

.fc-toolbar-title {
    color: var(--text-primary) !important;
    font-family: 'Unbounded', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

.fc-button {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.85rem !important;
}

.fc-button:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--bg-primary) !important;
}

.fc-button:focus {
    box-shadow: 0 0 0 2px rgba(197, 255, 0, 0.25) !important;
}

.fc-button-active {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--bg-primary) !important;
}

.fc-prev-button, .fc-next-button {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fc-event {
    background: var(--accent-color) !important;
    border: none !important;
    color: var(--bg-primary) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 500 !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
    margin: 2px 1px !important;
}

.fc-event:hover {
    background: var(--accent-dark) !important;
}

.fc-event-title,
.fc-event-time {
    color: var(--bg-primary) !important;
}

.fc-timegrid-slot {
    border-color: var(--border-light) !important;
}

.fc-timegrid-slot-label {
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
}

.fc-timegrid-axis {
    background: var(--bg-tertiary) !important;
    color: var(--text-muted) !important;
}

.fc-timegrid-col {
    background: var(--bg-card) !important;
}

.fc-timegrid-col:hover {
    background: var(--bg-tertiary) !important;
}

.fc-list {
    background: var(--bg-card) !important;
}

.fc-list-day-cushion {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.fc-list-event {
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.fc-list-event:hover {
    background: var(--bg-tertiary) !important;
}

.fc-list-event-time {
    color: var(--text-muted) !important;
}

.fc-list-event-title {
    color: var(--text-primary) !important;
}

.fc-popover {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
}

.fc-popover-header {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.fc-popover-body {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.fc-more-link {
    color: var(--accent-color) !important;
    font-weight: 500 !important;
}

.fc-more-link:hover {
    color: var(--accent-dark) !important;
}

.fc a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

.fc a:hover {
    color: var(--accent-color) !important;
}

.fc-daygrid-event a,
.fc-timegrid-event a {
    color: var(--bg-primary) !important;
}

@media (max-width: 767.98px) {
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding-top: 1rem;
        padding-bottom: calc(var(--mobile-bottombar-height, 60px) + 1rem + env(safe-area-inset-bottom));
        padding-left: calc(var(--mobile-edge-inset) + env(safe-area-inset-left));
        padding-right: calc(var(--mobile-edge-inset) + env(safe-area-inset-right));
    }
    .main-content .container,
    .main-content .container-fluid,
    .main-content .container-sm,
    .main-content .container-md,
    .main-content .container-lg,
    .main-content .container-xl,
    .main-content .container-xxl {
        --bs-gutter-x: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .main-content h3 {
        font-size: calc((1.3rem + 0.6vw) * 0.9);
    }
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        display: flex;
        flex-direction: column;
    }
    .modal .modal-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        max-height: 100%;
    }
    .modal .modal-header {
        flex-shrink: 0;
    }
    .modal .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        display: block;
    }
    .modal .modal-body > * {
        min-height: min-content;
    }
    .modal .modal-footer {
        flex-shrink: 0;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }
    .modal {
        z-index: 10800;
    }
    .modal-backdrop {
        z-index: 10750;
    }
    .schedule-conflict-modal,
    .rent-conflict-modal {
        z-index: 10850;
    }
    .schedule-conflict-modal .modal-backdrop,
    .rent-conflict-modal .modal-backdrop {
        z-index: 10825;
    }
    #studentPhoto .avatar-circle,
    #teacherPhoto .avatar-circle {
        width: 100px !important;
        height: 100px !important;
    }
    #studentPhoto .avatar-circle .avatar-circle-text,
    #teacherPhoto .avatar-circle .avatar-circle-text {
        font-size: 2rem !important;
    }
    .form-control,
    .form-select,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="search"],
    input[type="url"],
    input[type="date"],
    textarea {
        font-size: 16px !important;
    }
    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    .nav-tabs .nav-item {
        flex-shrink: 0;
    }
    .fab-btn.fab-btn--in-bottombar {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        z-index: 1;
        flex-shrink: 0;
    }
    .fc-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .fc-toolbar-title {
        font-size: 0.95rem;
    }
    .fc .fc-button {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }
    .page-schedule .schedule-calendar-col {
        overflow: auto;
    }
    .page-schedule .schedule-calendar-row {
        flex-direction: column;
    }
    .page-schedule .schedule-today-col {
        order: -1;
    }
    .page-schedule .schedule-calendar-col {
        order: 0;
        margin-top: 1rem;
    }
    .page-schedule .fc-day-lessons-count {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
        margin-top: -4px;
    }
    .page-schedule .container-fluid {
        height: auto;
        min-height: 0;
    }
    .page-schedule .schedule-calendar-row {
        flex: 0 0 auto;
        min-height: 0;
    }
    .page-schedule .schedule-calendar-col .card-body2 {
        min-height: 0;
    }
    .page-schedule #scheduleCalendar {
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding-top: 10px;
        padding-bottom: calc(var(--mobile-bottombar-height, 60px) + 1rem + env(safe-area-inset-bottom));
        padding-left: calc(var(--mobile-edge-inset) + env(safe-area-inset-left));
        padding-right: calc(var(--mobile-edge-inset) + env(safe-area-inset-right));
    }
    .card-header, .card-body {
        padding: 0.75rem;
    }
    .btn {
        padding: 0.45rem 0.75rem;
        font-size: 13px;
    }
}

@media (min-width: 1400px) {
    .main-content .container-fluid {
        max-width: 1500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1920px) {
    .main-content .container-fluid {
        max-width: 1950px;
    }
}

@media print {
    .sidebar, .mobile-sidebar, .mobile-bottombar, .btn, .modal, .fab-btn {
        display: none !important;
    }
    .main-content {
        margin-left: 0;
        padding: 0;
    }
}

#widget-low-lessons {
    max-height: 350px;
    overflow-y: auto;
}

#widget-low-lessons .dashboard-low-lessons-card-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

#widget-low-lessons .dashboard-low-lessons-card .avatar-circle,
#widget-low-lessons .dashboard-low-lessons-card .dashboard-low-lessons-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    flex-shrink: 0;
}

#widget-low-lessons .dashboard-low-lessons-card .dashboard-low-lessons-name,
#widget-low-lessons .dashboard-low-lessons-card .dashboard-low-lessons-contact {
    font-size: 0.8rem;
    font-weight: 600;
}

#widget-low-lessons .dashboard-low-lessons-card .dashboard-low-lessons-contact a {
    font-weight: 600;
}

@media (min-width: 992px) {
    #widget-low-lessons .dashboard-low-lessons-card-inner {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    #widget-low-lessons .dashboard-low-lessons-card .dashboard-low-lessons-contact {
        flex-shrink: 0;
        margin-left: auto;
    }
}

@media (max-width: 991.98px) {
    #widget-low-lessons {
        max-height: 200px;
        overflow-y: auto;
    }
}

#widget-drumroom {
    max-height: 350px;
    overflow-y: auto;
    min-width: 0;
}

#widget-lessons-today {
    max-height: 350px;
    overflow-y: auto;
    min-width: 0;
}

#widget-lessons-today .dashboard-lessons-today {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#widget-lessons-today .dashboard-lessons-today > .dashboard-lesson-card-cell {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 991.98px) {
    #widget-lessons-today .dashboard-lessons-today {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    #widget-lessons-today {
        max-height: 350px;
        overflow-y: auto;
    }
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.flatpickr-calendar {
    background: #3a3a3a;
    border-radius: 15px;
    box-shadow: 0px 0px 20px #000000;
    border: 1px solid var(--border-color);
}

.flatpickr-months,
.flatpickr-month,
.flatpickr-current-month {
    background: #3a3a3a !important;
    border-radius: 30px !important;
    color: var(--text-primary);
}

.flatpickr-month {
    height: auto !important;
    min-height: 44px !important;
    overflow: visible !important;
}

.flatpickr-current-month {
    padding: 0 !important;
    line-height: 1.5;
    height: auto !important;
    min-height: 32px !important;
    overflow: visible !important;
}

.flatpickr-current-month .numInputWrapper,
.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: #3a3a3a !important;
    border: none !important;
    vertical-align: middle;
}

.flatpickr-current-month .numInputWrapper input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month select.flatpickr-monthDropdown-months {
    background: #3a3a3a !important;
    color: var(--text-primary) !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 1.5;
}

.flatpickr-current-month select,
.flatpickr-current-month input {
    background: #3a3a3a !important;
    color: var(--text-primary) !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 1.5;
}

.flatpickr-day.today {
    border-color: var(--accent-color);
}

.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
    border: none !important;
}

.flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months {
    color: var(--text-primary);
}

.flatpickr-calendar .flatpickr-months .flatpickr-month {
    overflow: visible !important;
}

.flatpickr-calendar .flatpickr-current-month .numInputWrapper,
.flatpickr-calendar .flatpickr-current-month select,
.flatpickr-calendar .flatpickr-current-month input {
    border: none !important;
    outline: none !important;
}

.flatpickr-calendar .flatpickr-days {
    border: none;
}

.flatpickr-calendar .flatpickr-day.inRange,
.flatpickr-calendar .flatpickr-day.prevMonthDay.inRange,
.flatpickr-calendar .flatpickr-day.nextMonthDay.inRange {
    border: none;
    color: #000 !important;
    box-shadow: none;
    border-radius: 50%;
}

.flatpickr-day.selected.startRange, .flatpickr-day.startRange.startRange, .flatpickr-day.endRange.startRange {
    border-radius: 50px;
    color: #000 !important;
}
.flatpickr-day.selected.endRange, .flatpickr-day.startRange.endRange, .flatpickr-day.endRange.endRange {
    border-radius: 50px;
    color: #000 !important;
}
span.flatpickr-weekday {
   
    color: var(--text-primary);
  
}

.flatpickr-calendar.arrowTop:before {
    border-bottom-color: #e6e6e6;
}

.flatpickr-day {
   
    color: #dbdada !important
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    height: 34px;
    padding: 10px;
    z-index: 3;
    color: #ffffff !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: #ffffff;
    width: 14px;
    height: 14px;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--accent-color);
}

.instrument-card {
border-radius: 15px !important;
}

.selected.instrument-card {
    border: 1px solid var(--accent-color) !important;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: var(--accent-color) !important;
    background-color: #4f4e4e !important;
    border-radius: 15px !important;
    border: 1px solid var(--border-color) !important;
}

.nav-link {
    
    color: #ffffff !important;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
    background: var(--accent-color);
    -webkit-box-shadow: none;
    box-shadow: none;
    color: #fff;
    border-color: var(--accent-color);
    border-radius: 50%;
}

.modal-header {
border-top-right-radius: 12px;
border-top-left-radius: 12px;
}

.modal-footer {
border-bottom-right-radius: 15px;
border-bottom-left-radius: 15px;
}

.bg-dark {
    --bs-bg-opacity: 1;
    background-color: #000000 !important;
}

.schedule-delete-password-input {
    font-size: 16px;
    min-height: 2.5rem;
}

.btn-icon-only {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.student-teachers-col {
    width: 100%;
}

.student-brought-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.student-brought-controls {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.student-brought-controls .select2-container {
    min-width: 220px;
}

.student-brought-list-inline {
    display: inline-flex;
    grid: none;
    gap: 0.5rem;
    margin-top: 0;
}

.student-brought-list-inline .student-teacher-row {
    margin: 0;
}

.student-brought-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.student-brought-card .student-teacher-row-avatar {
    flex-shrink: 0;
}

.student-brought-card .student-teacher-row-avatar .avatar-circle {
    width: 32px;
    height: 32px;
}

.student-brought-card .name {
    white-space: nowrap;
}

.student-brought-card .student-brought-remove-btn {
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.student-selected-teachers-list,
#teacherSelectedStudentsList.student-selected-teachers-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.teacher-form #teacherStudentsSearchWrap {
    display: flex;
    justify-content: flex-start;
    width: 33.3333%;
    min-width: 180px;
    margin: 0.25rem 0 0.5rem;
}

.teacher-form #teacherStudentsSearchWrap .dashboard-search-input {
    width: 100%;
}

@media (max-width: 767.98px) {
    .teacher-form #teacherStudentsSearchWrap {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 991.98px) {
    .student-selected-teachers-list,
    #teacherSelectedStudentsList.student-selected-teachers-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767.98px) {
    .student-selected-teachers-list,
    #teacherSelectedStudentsList.student-selected-teachers-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.student-selected-teachers-list .student-teacher-row,
#teacherSelectedStudentsList .student-teacher-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.student-selected-teachers-list .student-teacher-card:hover,
#teacherSelectedStudentsList .student-teacher-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}

.student-selected-teachers-list .student-teacher-row .student-teacher-row-avatar,
#teacherSelectedStudentsList .student-teacher-row .student-teacher-row-avatar {
    flex-shrink: 0;
}

.student-selected-teachers-list .student-teacher-row .student-teacher-row-avatar .avatar-circle,
#teacherSelectedStudentsList .student-teacher-row .student-teacher-row-avatar .avatar-circle {
    width: 48px;
    height: 48px;
}

.student-selected-teachers-list .student-teacher-row .student-teacher-row-avatar .avatar-circle img,
#teacherSelectedStudentsList .student-teacher-row .student-teacher-row-avatar .avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-selected-teachers-list .student-teacher-row .person-card-firstname,
.student-selected-teachers-list .student-teacher-row .person-card-lastname,
#teacherSelectedStudentsList .student-teacher-row .person-card-firstname,
#teacherSelectedStudentsList .student-teacher-row .person-card-lastname {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
}

.student-selected-teachers-list .student-teacher-row .person-card-lastname,
#teacherSelectedStudentsList .student-teacher-row .person-card-lastname {
    font-weight: 600;
}

.student-selected-teachers-list .student-teacher-row .btn-remove-teacher,
.student-selected-teachers-list .student-teacher-row .btn-remove-student,
#teacherSelectedStudentsList .student-teacher-row .btn-remove-teacher,
#teacherSelectedStudentsList .student-teacher-row .btn-remove-student {
    flex-shrink: 0;
    padding: 0.15rem 0.35rem;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.nav-tabs .nav-link.active {
    background: var(--bg-card);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.form-select:focus {
    border-color: none !important;
    box-shadow: none !important;
}

.schedule-conflict-modal,
.rent-conflict-modal {
    z-index: 1061;
}

.schedule-conflict-modal .modal-dialog,
.rent-conflict-modal .modal-dialog {
    position: fixed;
    right: 20px;
    left: auto;
    margin: 0;
    max-width: 450px;
    top: 50%;
    transform: translateY(-50%);
}

.modal.show ~ .schedule-conflict-modal.show .modal-dialog,
.modal.show ~ .rent-conflict-modal.show .modal-dialog {
    animation: slideInRight 0.3s ease-out;
}

.flatpickr-day.inRange, .flatpickr-day.prevMonthDay.inRange, .flatpickr-day.nextMonthDay.inRange, .flatpickr-day.today.inRange, .flatpickr-day.prevMonthDay.today.inRange, .flatpickr-day.nextMonthDay.today.inRange, .flatpickr-day:hover, .flatpickr-day.prevMonthDay:hover, .flatpickr-day.nextMonthDay:hover, .flatpickr-day:focus, .flatpickr-day.prevMonthDay:focus, .flatpickr-day.nextMonthDay:focus {
    cursor: pointer;
    outline: 0;
    background: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 50%;
}

.flatpickr-day.startRange, .flatpickr-day.endRange {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    border-radius: 50%;
}

.flatpickr-calendar .flatpickr-day {
    border-radius: 50%;
}

@keyframes slideInRight {
    from {
        transform: translate(100%, -50%);
        opacity: 0;
    }
    to {
        transform: translate(0, -50%);
        opacity: 1;
    }
}

@media (max-width: 1400px) {
    .schedule-conflict-modal .modal-dialog,
    .rent-conflict-modal .modal-dialog {
        max-width: 400px;
    }
}

@media (max-width: 1200px) {
    .schedule-conflict-modal .modal-dialog,
    .rent-conflict-modal .modal-dialog {
        position: fixed;
        left: 50%;
        right: auto;
        max-width: 90%;
        top: 10%;
        transform: translateX(-50%);
    }
    
    .modal.show ~ .schedule-conflict-modal.show .modal-dialog,
    .modal.show ~ .rent-conflict-modal.show .modal-dialog {
        animation: slideInDown 0.3s ease-out;
    }
    
    @keyframes slideInDown {
        from {
            transform: translate(-50%, -100%);
            opacity: 0;
        }
        to {
            transform: translate(-50%, 0);
            opacity: 1;
        }
    }
}

.classroom-card-body {
    position: relative;
}

.classroom-time-scale {
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 50px;
    border-right: 1px solid var(--border-color);
    background: transparent;
    z-index: 2;
}

.classroom-time-label {
    position: absolute;
    left: 0;
    right: 0;
    font-size: 11px;
    color: #fff;
    padding: 2px 6px;
    transform: translateY(-50%);
    white-space: nowrap;
    z-index: 3;
}

.classroom-time-scale-indicators {
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 50px;
    z-index: 1;
    pointer-events: none;
    background: var(--bg-secondary);
}

.classroom-time-indicator {
    position: absolute;
    left: 2px;
    right: 2px;
    opacity: 0.7;
    border-radius: 4px;
    min-height: 2px;
}

.classroom-lessons-container {
    margin-left: 50px;
    position: relative;
    min-height: 680px;
    padding: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.classroom-lesson-card {
    position: absolute;
    left: 8px;
    right: 8px;
    border: 1px solid;
    border-radius: 10px;
    padding: 6px 10px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    min-height: 40px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.classroom-lesson-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.classroom-lesson-card.lesson-status-planned {
    border-color: #ffc107;
}

.classroom-lesson-card.lesson-status-done {
    border-color: #198754;
}

.classroom-lesson-card.lesson-status-cancelled {
    border-color: #dc3545;
    opacity: 0.6;
}

.classroom-lesson-card.lesson-type-rent {
    border-color: #0dcaf0;
}

.classroom-lesson-draggable {
    cursor: grab;
}

.classroom-lesson-draggable:active {
    cursor: grabbing;
}

.classroom-lesson-card.classroom-lesson-dragging {
    opacity: 0.7;
}

.classroom-lesson-card.classroom-drag-ghost {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
    overflow: hidden;
}

.classroom-card-body.classroom-drop-active {
    outline: 2px dashed var(--accent-color);
    outline-offset: -2px;
}

.classroom-lesson-content {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-size: 13px;
}

.classroom-lesson-time {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.classroom-lesson-instrument {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.classroom-lesson-avatars {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.classroom-lesson-avatars .avatar-circle {
    flex-shrink: 0;
}

.classroom-drumroom-label {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #dc3545;
    font-size: 10px;
    padding: 2px 6px;
    margin-right: 4px;
    flex-shrink: 0;
    border-radius: 4px;
    font-weight: 600;
}

#leadKanbanContainer {
    width: 100%;
}

#leadKanbanContainer .kanban-column {
    flex: 1;
    min-width: 200px;
}

.lead-kanban-count {
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
}

#convertLeadZone i {
    color: #fff;
}

.lead-card {
    transition: all 0.2s ease;
}

.lead-card-main {
    gap: 0.5rem;
}

.lead-card .lead-delete-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lead-card:hover .lead-delete-btn {
    opacity: 1;
}

.lead-card .students-table-student-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
}

.lead-card .d-flex.small {
    font-size: 0.75rem;
}

#coldLeadBadge {
    min-width: 18px !important;
    max-width: 18px !important;
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    font-size: 10px !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

#coldLeadBadge.d-none {
    display: none !important;
}

#expenseCategoryChart {
    max-height: 80px !important;
    height: 80px !important;
}

.card:has(#expenseCategoryChart) {
    height: 80px !important;
    max-height: 80px !important;
    overflow: hidden;
}

#expenseCategoryChart {
    max-height: 80px !important;
}