/* botle Sports Coaching Management - Modern Education Theme */
  
/* Responsive design utilities */
@media (max-width: 768px) {
    .mobile-info {
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }
    
    /* Hidden in desktop */
    .mobile-status {
        margin-top: 0.25rem;
    }
    
    .mobile-actions {
        margin-top: 1rem;
    }
    
    .mobile-add-btn {
        width: 100%;
    }
    
    .btn-group-mobile .dropdown-toggle {
        width: 40px;
        height: 32px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-row.responsive-row {
        margin: 0 -0.5rem;
    }
    
    .form-row.responsive-row .form-group {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .col-md-4, .col-md-2, .col-md-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===================================
   BOOTSTRAP GRID SYSTEM
   Complete responsive column system
   =================================== */

/* Base column styles */
.col, [class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

/* Extra small devices (xs) - default */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Small devices (sm) - 576px and up */
@media (min-width: 576px) {
    .col-sm { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-sm-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Medium devices (md) - 768px and up */
@media (min-width: 768px) {
    .col-md { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-md-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Large devices (lg) - 992px and up */
@media (min-width: 992px) {
    .col-lg { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-lg-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Extra large devices (xl) - 1200px and up */
@media (min-width: 1200px) {
    .col-xl { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-xl-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
    .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
    .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

/* ===================================
   BOOTSTRAP OFFSET UTILITIES
   Column offset classes
   =================================== */

/* Offset utilities for all breakpoints */
.offset-1 { margin-left: 8.333333%; }
.offset-2 { margin-left: 16.666667%; }
.offset-3 { margin-left: 25%; }
.offset-4 { margin-left: 33.333333%; }
.offset-5 { margin-left: 41.666667%; }
.offset-6 { margin-left: 50%; }
.offset-7 { margin-left: 58.333333%; }
.offset-8 { margin-left: 66.666667%; }
.offset-9 { margin-left: 75%; }
.offset-10 { margin-left: 83.333333%; }
.offset-11 { margin-left: 91.666667%; }

@media (min-width: 576px) {
    .offset-sm-0 { margin-left: 0; }
    .offset-sm-1 { margin-left: 8.333333%; }
    .offset-sm-2 { margin-left: 16.666667%; }
    .offset-sm-3 { margin-left: 25%; }
    .offset-sm-4 { margin-left: 33.333333%; }
    .offset-sm-5 { margin-left: 41.666667%; }
    .offset-sm-6 { margin-left: 50%; }
    .offset-sm-7 { margin-left: 58.333333%; }
    .offset-sm-8 { margin-left: 66.666667%; }
    .offset-sm-9 { margin-left: 75%; }
    .offset-sm-10 { margin-left: 83.333333%; }
    .offset-sm-11 { margin-left: 91.666667%; }
}

@media (min-width: 768px) {
    .offset-md-0 { margin-left: 0; }
    .offset-md-1 { margin-left: 8.333333%; }
    .offset-md-2 { margin-left: 16.666667%; }
    .offset-md-3 { margin-left: 25%; }
    .offset-md-4 { margin-left: 33.333333%; }
    .offset-md-5 { margin-left: 41.666667%; }
    .offset-md-6 { margin-left: 50%; }
    .offset-md-7 { margin-left: 58.333333%; }
    .offset-md-8 { margin-left: 66.666667%; }
    .offset-md-9 { margin-left: 75%; }
    .offset-md-10 { margin-left: 83.333333%; }
    .offset-md-11 { margin-left: 91.666667%; }
}

@media (min-width: 992px) {
    .offset-lg-0 { margin-left: 0; }
    .offset-lg-1 { margin-left: 8.333333%; }
    .offset-lg-2 { margin-left: 16.666667%; }
    .offset-lg-3 { margin-left: 25%; }
    .offset-lg-4 { margin-left: 33.333333%; }
    .offset-lg-5 { margin-left: 41.666667%; }
    .offset-lg-6 { margin-left: 50%; }
    .offset-lg-7 { margin-left: 58.333333%; }
    .offset-lg-8 { margin-left: 66.666667%; }
    .offset-lg-9 { margin-left: 75%; }
    .offset-lg-10 { margin-left: 83.333333%; }
    .offset-lg-11 { margin-left: 91.666667%; }
}

@media (min-width: 1200px) {
    .offset-xl-0 { margin-left: 0; }
    .offset-xl-1 { margin-left: 8.333333%; }
    .offset-xl-2 { margin-left: 16.666667%; }
    .offset-xl-3 { margin-left: 25%; }
    .offset-xl-4 { margin-left: 33.333333%; }
    .offset-xl-5 { margin-left: 41.666667%; }
    .offset-xl-6 { margin-left: 50%; }
    .offset-xl-7 { margin-left: 58.333333%; }
    .offset-xl-8 { margin-left: 66.666667%; }
    .offset-xl-9 { margin-left: 75%; }
    .offset-xl-10 { margin-left: 83.333333%; }
    .offset-xl-11 { margin-left: 91.666667%; }
}

/* ===================================
   BOOTSTRAP ORDER UTILITIES
   Flexbox order classes
   =================================== */

.order-first { order: -1; }
.order-0 { order: 0; }
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-4 { order: 4; }
.order-5 { order: 5; }
.order-6 { order: 6; }
.order-7 { order: 7; }
.order-8 { order: 8; }
.order-9 { order: 9; }
.order-10 { order: 10; }
.order-11 { order: 11; }
.order-12 { order: 12; }
.order-last { order: 13; }

@media (min-width: 576px) {
    .order-sm-first { order: -1; }
    .order-sm-0 { order: 0; }
    .order-sm-1 { order: 1; }
    .order-sm-2 { order: 2; }
    .order-sm-3 { order: 3; }
    .order-sm-4 { order: 4; }
    .order-sm-5 { order: 5; }
    .order-sm-6 { order: 6; }
    .order-sm-7 { order: 7; }
    .order-sm-8 { order: 8; }
    .order-sm-9 { order: 9; }
    .order-sm-10 { order: 10; }
    .order-sm-11 { order: 11; }
    .order-sm-12 { order: 12; }
    .order-sm-last { order: 13; }
}

@media (min-width: 768px) {
    .order-md-first { order: -1; }
    .order-md-0 { order: 0; }
    .order-md-1 { order: 1; }
    .order-md-2 { order: 2; }
    .order-md-3 { order: 3; }
    .order-md-4 { order: 4; }
    .order-md-5 { order: 5; }
    .order-md-6 { order: 6; }
    .order-md-7 { order: 7; }
    .order-md-8 { order: 8; }
    .order-md-9 { order: 9; }
    .order-md-10 { order: 10; }
    .order-md-11 { order: 11; }
    .order-md-12 { order: 12; }
    .order-md-last { order: 13; }
}

@media (min-width: 992px) {
    .order-lg-first { order: -1; }
    .order-lg-0 { order: 0; }
    .order-lg-1 { order: 1; }
    .order-lg-2 { order: 2; }
    .order-lg-3 { order: 3; }
    .order-lg-4 { order: 4; }
    .order-lg-5 { order: 5; }
    .order-lg-6 { order: 6; }
    .order-lg-7 { order: 7; }
    .order-lg-8 { order: 8; }
    .order-lg-9 { order: 9; }
    .order-lg-10 { order: 10; }
    .order-lg-11 { order: 11; }
    .order-lg-12 { order: 12; }
    .order-lg-last { order: 13; }
}

@media (min-width: 1200px) {
    .order-xl-first { order: -1; }
    .order-xl-0 { order: 0; }
    .order-xl-1 { order: 1; }
    .order-xl-2 { order: 2; }
    .order-xl-3 { order: 3; }
    .order-xl-4 { order: 4; }
    .order-xl-5 { order: 5; }
    .order-xl-6 { order: 6; }
    .order-xl-7 { order: 7; }
    .order-xl-8 { order: 8; }
    .order-xl-9 { order: 9; }
    .order-xl-10 { order: 10; }
    .order-xl-11 { order: 11; }
    .order-xl-12 { order: 12; }
    .order-xl-last { order: 13; }
}

/* Form styling improvements */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.form-group {
    padding: 0 0.75rem;
    margin-bottom: 1rem;
    flex: 1;
}

.form-group-half {
    flex: 0 0 50%;
}

@media (max-width: 576px) {
    .form-group-half {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Table responsive improvements */
.user-info {
    min-width: 150px;
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .table-responsive table {
        min-width: 600px;
    }
}

/* Modal improvements */
.modal {
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 576px) {
    .modal {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
}


/* ===============================
   MODERN USER MANAGEMENT STYLES
   =============================== */

/* Page Layout */
.users-page,
.centers-page,
.organizations-page {
    background: var(--bg-secondary);
    min-height: 100vh;
    padding: var(--spacing-xl) var(--spacing-lg);
    padding-top: 135px;

}

.page-header-modern {
    margin-bottom: var(--spacing-xl);
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.page-title-section {
    flex: 1;
}

.page-title-modern {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
}

.page-subtitle-modern {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

.page-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

/* Bootstrap Button Enhancements */
.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

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

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

.btn-secondary {
    background-color: var(--gray-600);
    border-color: var(--gray-600);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--gray-700);
    border-color: var(--gray-700);
    color: var(--white);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Bootstrap Card Enhancements */
.card {
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-card);
}

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

.card-body {
    padding: 1.25rem;
}

/* Bootstrap Table Enhancements */
.table {
    background-color: var(--table-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.table thead th {
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--table-border);
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem 0.75rem;
}

.table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    color: var(--text-secondary);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-hover);
}

/* Bootstrap Dropdown Enhancements */
.dropdown-menu {
    border: 1px solid var(--border-primary);
    border-radius: 10px !important;
    min-width: 200px !important;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-card);
    padding: 0.5rem 0;
    z-index: 1050 !important; /* Ensure dropdown appears above other content */
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-divider {
    border-top: 1px solid var(--border-primary);
    margin: 0.5rem 0;
}

/* Content Card */
.content-card-modern {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Enhanced Filter Bar */
.filter-bar-modern {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-card);
}

.filter-form {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    flex-wrap: wrap;
}

.search-section {
    flex: 1;
    min-width: 300px;
}

.search-input-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 8px 10px 8px 40px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.select2-container--bootstrap-5 .select2-selection--single {
    border-radius: var(--radius-sm) !important;
}

.select2-selection__placeholder {
    font-family: 'Poppins' !important;
    font-size: 0.9rem !important;
    font-weight: 100 !important;
}

.select2 {
    min-width: 150px;
}
.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(161, 222, 86, 0.1);
}

.filter-controls {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    flex-wrap: wrap;
}

.filter-dropdown {
    position: relative;
}

.filter-select {
    padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-sm) var(--spacing-sm);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(161, 222, 86, 0.1);
}

.btn-clear-filters {
    padding: 10px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-filters:hover {
    color: var(--text-primary);
    border-color: var(--border-secondary);
    background: var(--bg-hover);
}

/* Active Filters */
.active-filters {
    display: none;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--accent-primary);
    color: var(--text-inverse);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.filter-chip-label {
    white-space: nowrap;
}

.filter-chip-remove {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-chip-remove:hover {
    background: rgba(0, 0, 0, 0.2);
}

.filter-chip-remove svg {
    width: 12px;
    height: 12px;
}

/* Modern Table */
.table-container-modern {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Add horizontal scroll only on smaller screens when needed */
@media (max-width: 1200px) {
    .table-container-modern {
        overflow-x: auto;
        overflow-y: visible;
    }
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-size: 0.875rem;
    min-width: 900px;
    overflow-y: auto;
}

@media (max-width: 1200px) {
    .table-modern {
        min-width: 800px;
    }
}

@media (max-width: 992px) {
    .table-modern {
        min-width: 700px;
    }
}

/* Modern Scrollbar Design */
.table-container-modern::-webkit-scrollbar {
    height: 8px;
}

.table-container-modern::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.table-container-modern::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.table-container-modern::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Firefox scrollbar */
.table-container-modern {
    scrollbar-width: thin;
    scrollbar-color: var(--border-secondary) var(--bg-secondary);
}

.table-header-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-tertiary);
}

.table-header-sticky th {
    padding: var(--spacing-md) var(--spacing-sm);
    text-align: left;
    border-bottom: 2px solid var(--border-primary);
    background: var(--bg-tertiary);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.th-content {
    display: flex;
    align-items: start;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.sortable .th-content:hover {
    color: var(--accent-primary);
}

.sort-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.sortable:hover .sort-icon {
    opacity: 1;
}

.sorted .sort-icon {
    opacity: 1;
    color: var(--accent-primary);
}

.sorted-asc .sort-icon {
    transform: rotate(180deg);
}

.actions-column .th-content {
    justify-content: start;
    cursor: default;
}

.actions-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

/* Accent button style */
.btn-accent-modern {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-accent-modern:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

/* Table Body */

.table-row-modern:hover {
    background: var(--bg-hover);
}

.table-row-modern td {
    padding: var(--spacing-lg) var(--spacing-sm);
    vertical-align: middle;
}

/* User Cell */
.user-cell {
    min-width: 200px;
}

.user-info-modern {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.mobile-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Pills and Badges */
.role-pill, .status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.role-student {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.role-coach {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.role-center_admin, .role-center-admin {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.role-org_admin, .role-org-admin {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}


.status-inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    font-size: 0.65rem;
    padding: 2px 6px;
    margin-left: var(--spacing-xs);
}

/* Text Cells */
.email-text, .phone-text, .date-text, .groups-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.email-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Actions */
.actions-cell {
    width: 60px;
    text-align: center;
    position: relative;
    overflow: visible;
}

.actions-dropdown {
    position: relative;
    display: inline-block;
}

.actions-button {
    background: none;
    border: none;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--text-muted);
}

.actions-button:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.actions-dots {
    width: 20px;
    height: 20px;
}

.actions-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 1051;
    min-width: 180px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    white-space: nowrap;
}

.actions-menu.show {
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.action-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}

.action-item:hover {
    background: var(--bg-hover);
}

.action-item.danger {
    color: var(--error);
}

.action-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.action-icon {
    width: 16px;
    height: 16px;
}

.action-divider {
    height: 1px;
    background: var(--border-primary);
    margin: var(--spacing-xs) 0;
}

/* Hide/show elements based on screen size */
.d-none {
    display: none !important;
}

.d-md-none {
    display: initial !important;
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-md-table-cell {
        display: table-cell !important;
    }
    
    .d-md-inline {
        display: inline !important;
    }
}

/* Pagination */
.pagination-container {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-primary);
    background: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.results-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pagination-nav {
    display: flex;
    align-items: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-sm);
}

.pagination-icon {
    width: 16px;
    height: 16px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 var(--spacing-md);
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-number:hover {
    background: var(--bg-hover);
}

.pagination-number.active {
    background: var(--accent-primary);
    color: var(--text-inverse);
    font-weight: 600;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    color: var(--text-muted);
}

.empty-state-icon svg {
    width: 100%;
    height: 100%;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-state-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

/* Mobile Card View */
.mobile-cards-container {
    padding: var(--spacing-lg);
    display: none;
}

.user-card-mobile {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-primary);
}

.user-avatar-mobile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-card-info {
    flex: 1;
}

.user-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
}

.user-card-badges {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.user-card-actions {
    position: relative;
}

.user-card-details {
    padding: var(--spacing-md);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid var(--border-primary);
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.detail-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .users-page,
    .organizations-page {
        padding: var(--spacing-md);
    }
    
    .page-header-content {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }
    
    .page-actions {
        order: -1;
        justify-content: flex-end;
    }
    
    .filter-form {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }
    
    .search-section {
        min-width: 0;
    }
    
    .filter-controls {
        justify-content: stretch;
        gap: var(--spacing-sm);
    }
    
    .filter-dropdown {
        flex: 1;
    }
    
    .filter-select {
        width: 100%;
        min-width: 0;
    }
    
    .table-container-modern {
        display: none;
    }
    
    /* Hide horizontal scrollbar on mobile when using cards */
    body {
        overflow-x: hidden;
    }
    
    .mobile-cards-container {
        display: block;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .pagination-numbers {
        margin: 0;
        justify-content: center;
    }
    
    .btn-primary-modern, .btn-secondary-modern {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .pagination-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.75rem;
    }
    
    .pagination-numbers {
        gap: 2px;
    }
    
    .pagination-number {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

@media (min-width: 576px) {
    .d-sm-table-cell {
        display: table-cell !important;
    }
}

@media (min-width: 992px) {
    .d-lg-table-cell {
        display: table-cell !important;
    }
}

/* ===============================
   BOOTSTRAP MODAL ENHANCEMENTS
   =============================== */

/* Bootstrap modal enhancements */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    background-color: var(--bg-card);
}

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

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-primary);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 1rem 1.5rem;
}

/* ===============================
   BOOTSTRAP FORM ENHANCEMENTS
   =============================== */

/* Bootstrap form enhancements */
.form-control {
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    background-color: var(--bg-input);
    color: var(--text-primary);
    transition: var(--transition-normal);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(161, 222, 86, 0.25);
    background-color: var(--bg-card);
}

.form-control.is-invalid {
    border-color: var(--error);
}

.form-control.is-valid {
    border-color: var(--success);
}

.form-label {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.invalid-feedback {
    color: var(--error);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    color: var(--success);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ===============================
   CUSTOM CHECKBOX STYLES
   =============================== */

/* Modern Checkbox Design */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    vertical-align: top;
    background-color: var(--bg-input);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 2px solid var(--border-input);
    border-radius: var(--radius-sm);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.form-check-input:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(161, 222, 86, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:hover:not(:disabled):not(:checked) {
    border-color: var(--primary);
    background-color: var(--primary-50);
}

.form-check-input:disabled {
    pointer-events: none;
    filter: none;
    opacity: 0.5;
}

.form-check-input:disabled ~ .form-check-label {
    opacity: 0.5;
}

/* Checkbox Label */
.form-check-label {
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    margin-left: 0.5rem;
    user-select: none;
}

.form-check-label:hover {
    color: var(--text-primary);
}

/* Form Check Container */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 1.5rem;
    padding-left: 0;
    margin-bottom: 0.125rem;
}

.form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    margin-bottom: 0;
}

/* Custom Checkbox Variants */
.checkbox-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.checkbox-modern input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-modern .checkmark {
    height: 1.25rem;
    width: 1.25rem;
    background-color: var(--bg-input);
    border: 2px solid var(--border-input);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.checkbox-modern:hover input ~ .checkmark {
    border-color: var(--primary);
    background-color: var(--primary-50);
}

.checkbox-modern input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-modern input:focus ~ .checkmark {
    box-shadow: 0 0 0 0.2rem rgba(161, 222, 86, 0.25);
}

.checkbox-modern .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 0.3125rem;
    top: 0.125rem;
    width: 0.375rem;
    height: 0.625rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-modern input:checked ~ .checkmark:after {
    display: block;
}

/* Toggle Switch Style */
.form-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.form-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.form-switch .switch-slider {
    position: relative;
    width: 2.5rem;
    height: 1.25rem;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-input);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.form-switch .switch-slider:before {
    position: absolute;
    content: "";
    height: 0.875rem;
    width: 0.875rem;
    left: 0.125rem;
    top: 0.0625rem;
    background-color: white;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-switch input:checked ~ .switch-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-switch input:checked ~ .switch-slider:before {
    transform: translateX(1.25rem);
}

.form-switch input:focus ~ .switch-slider {
    box-shadow: 0 0 0 0.2rem rgba(161, 222, 86, 0.25);
}

.form-switch:hover input ~ .switch-slider {
    border-color: var(--primary);
}

/* Small Checkbox Variant */
.form-check-sm .form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.1875rem;
}

.form-check-sm .form-check-label {
    font-size: 0.75rem;
    margin-left: 0.375rem;
}

/* Large Checkbox Variant */
.form-check-lg .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0;
}

.form-check-lg .form-check-label {
    font-size: 1rem;
    margin-left: 0.625rem;
}

/* Additional form utilities */
.mobile-status {
    display: none;
}

.role-fields-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-primary);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--spacing-lg) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

/* ===============================
   MOBILE FORM RESPONSIVE
   =============================== */

@media (max-width: 768px) {
    .modal-modern {
        margin: var(--spacing-md);
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }
    
    .modal-header-modern {
        padding: var(--spacing-lg);
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .modal-body-modern {
        padding: var(--spacing-lg);
        max-height: calc(70vh - 120px);
    }
    
    .modal-footer-modern {
        padding: var(--spacing-lg);
        flex-direction: column-reverse;
        gap: var(--spacing-sm);
    }
    
    .form-grid-modern {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .btn-primary-modern, .btn-secondary-modern {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .modal-modern {
        border-radius: var(--radius-md);
    }
    
    .modal-header-modern {
        padding: var(--spacing-md);
    }
    
    .modal-body-modern {
        padding: var(--spacing-md);
    }
    
    .modal-footer-modern {
        padding: var(--spacing-md);
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

  /* Default Light Theme */
  :root {
   /* Color Palette - Light Theme */
   --bg-primary: #ffffff;
   --bs-table-bg: #ffffff !important;
   --bs-body-bg: #ffffff !important;
   --bg-secondary: #f8fafc;
   --bg-tertiary: #f1f5f9;
   --bg-card: #ffffff;
   --bg-hover: #f1f5f9;
   --bg-input: #ffffff;

   --warning-color: #f59e0b;
       
   --text-primary: #1f2937;
   --bs-table-color-state: var(--text-primary) !important;  

   --text-secondary: #374151;
--bs-secondary-color: var(--text-secondary) !important;

   --text-muted: #6b7280 !important;
   --text-inverse: #ffffff;
   
   --border-primary: #e5e7eb;
   --border-secondary: #d1d5db;
   --border-light: #f3f4f6;
       
    --accent-primary: #83e30e;
    --accent-secondary: #77ba58;
    --accent-hover: #77ba58;
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
        
        /* Border Radius - Softer */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    
    /* Shadows - Subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 2px 6px rgba(0, 0, 0, 0.5);
        
        /* Spacing - More Generous */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    --success-bg: #a1de56;
    --warning-bg: #f59e0b;
    --error-bg: #ef4444;
    --info-bg: #3b82f6;

    --success-color: #000000;

    /* Bootstrap CSS Variables - Default Light Theme */
    --bs-body-color: #1f2937 !important;
    --bs-body-bg: #ffffff !important;
    --bs-emphasis-color: #1f2937 !important;
    --bs-emphasis-color-rgb: 31, 41, 55 !important;
    --bs-secondary-color: #374151 !important;
    --bs-secondary-color-rgb: 55, 65, 81 !important;
    --bs-secondary-bg: #f8fafc !important;
    --bs-secondary-bg-rgb: 248, 250, 252 !important;
    --bs-tertiary-color: #6b7280 !important;
    --bs-tertiary-color-rgb: 107, 114, 128 !important;
    --bs-tertiary-bg: #f1f5f9 !important;
    --bs-tertiary-bg-rgb: 241, 245, 249 !important;
    --bs-heading-color: #1f2937 !important;
    --bs-link-color: #a1de56 !important;
    --bs-link-color-rgb: 161, 222, 86 !important;
    --bs-link-decoration: none !important;
    --bs-link-hover-color: #77ba58 !important;
    --bs-link-hover-color-rgb: 119, 186, 88 !important;
    --bs-code-color: #374151 !important;
    --bs-highlight-color: #1f2937 !important;
    --bs-highlight-bg: #f8fafc !important;
    --bs-border-color: #e5e7eb !important;
    --bs-border-color-translucent: rgba(229, 231, 235, 0.175) !important;
    --bs-form-valid-color: #10b981 !important;
    --bs-form-valid-border-color: #10b981 !important;
    --bs-form-invalid-color: #ef4444 !important;
    --bs-form-invalid-border-color: #ef4444 !important;
 }

 /* Dark Theme */
 [data-theme="dark"] {
  --bg-primary: #000000;
  --bs-table-bg: #000000 !important;
  --bs-body-bg: #000000 !important;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #222222;
  --bg-hover: #2a2a2a;
  --bg-input: #333333;
  --text-primary: #e3e3e3;
  --bs-table-color-state: var(--text-primary) !important;
  --text-secondary: #9c9c9c;
  --text-muted: #a0a0a0 !important;
  --text-inverse: #000000;
  --border-primary: #393939;
  --border-secondary: #555555;
  --border-light: #333333;
  --accent-primary: #83e30e;
  --accent-secondary: #77ba58;
  --accent-hover: #77ba58;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --shadow-sm: 0 1px 2px rgba(255, 255, 255, 0.1);
  --shadow-md: 0 1px 3px rgba(255, 255, 255, 0.15);    
  --shadow-lg: 0 2px 4px rgba(255, 255, 255, 0.2);
  --shadow-xl: 0 2px 6px rgba(255, 255, 255, 0.25);
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --success-bg: #76b627;
  --warning-bg: #f59e0b;
  --error-bg: #ef4444;
  --info-bg: #7a9dd6;

  /* Bootstrap CSS Variables for Dark Theme */
  --bs-body-color: #ffffff !important;
  --bs-body-bg: #000000 !important;
  --bs-emphasis-color: #ffffff !important;
  --bs-emphasis-color-rgb: 255, 255, 255 !important;
  --bs-secondary-color: #e5e5e5 !important;
  --bs-secondary-color-rgb: 229, 229, 229 !important;
  --bs-secondary-bg: #111111 !important;
  --bs-secondary-bg-rgb: 17, 17, 17 !important;
  --bs-tertiary-color: #a0a0a0 !important;
  --bs-tertiary-color-rgb: 160, 160, 160 !important;
  --bs-tertiary-bg: #1a1a1a !important;
  --bs-tertiary-bg-rgb: 26, 26, 26 !important;
  --bs-heading-color: #ffffff !important;
  --bs-link-color: #a1de56 !important;
  --bs-link-color-rgb: 161, 222, 86 !important;
  --bs-link-decoration: none !important;
  --bs-link-hover-color: #77ba58 !important;
  --bs-link-hover-color-rgb: 119, 186, 88 !important;
  --bs-code-color: #e5e5e5 !important;
  --bs-highlight-color: #ffffff !important;
  --bs-highlight-bg: #333333 !important;
  --bs-border-color: #444444 !important;
  --bs-border-color-translucent: rgba(68, 68, 68, 0.175) !important;
  --bs-form-valid-color: #10b981 !important;
  --bs-form-valid-border-color: #10b981 !important;
  --bs-form-invalid-color: #ef4444 !important;
  --bs-form-invalid-border-color: #ef4444 !important;
 }

 /* Light Theme */
 [data-theme="light"] {
  --bg-primary: #ffffff;
  --bs-table-bg: #ffffff !important;
  --bs-body-bg: #ffffff !important;
  --bg-secondary: #f1f1f1;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-input: #ffffff;
  --text-primary: #1f2937;
  --bs-table-color-state: var(--text-primary) !important;
  --text-secondary: #374151;
  --text-muted: #6b7280 !important;
  --text-inverse: #ffffff;
  --border-primary: #e5e7eb;
  --border-secondary: #d1d5db;
  --border-light: #f3f4f6;
  --accent-primary: #83e30e;
  --accent-secondary: #77ba58;
  --accent-hover: #77ba58;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Bootstrap CSS Variables for Light Theme */
  --bs-body-color: #1f2937 !important;
  --bs-body-bg: #ffffff !important;
  --bs-emphasis-color: #1f2937 !important;
  --bs-emphasis-color-rgb: 31, 41, 55 !important;
  --bs-secondary-color: #374151 !important;
  --bs-secondary-color-rgb: 55, 65, 81 !important;
  --bs-secondary-bg: #f8fafc !important;
  --bs-secondary-bg-rgb: 248, 250, 252 !important;
  --bs-tertiary-color: #6b7280 !important;
  --bs-tertiary-color-rgb: 107, 114, 128 !important;
  --bs-tertiary-bg: #f1f5f9 !important;
  --bs-tertiary-bg-rgb: 241, 245, 249 !important;
  --bs-heading-color: #1f2937 !important;
  --bs-link-color: #0ea5e9 !important;
  --bs-link-color-rgb: 14, 165, 233 !important;
  --bs-link-decoration: none !important;
  --bs-link-hover-color: #0369a1 !important;
  --bs-link-hover-color-rgb: 3, 105, 161 !important;
  --bs-code-color: #374151 !important;
  --bs-highlight-color: #1f2937 !important;
  --bs-highlight-bg: #f8fafc !important;
  --bs-border-color: #e5e7eb !important;
  --bs-border-color-translucent: rgba(229, 231, 235, 0.175) !important;
  --bs-form-valid-color: #10b981 !important;
  --bs-form-valid-border-color: #10b981 !important;
  --bs-form-invalid-color: #ef4444 !important;
  --bs-form-invalid-border-color: #ef4444 !important;
 }

/* Apply theme variables to elements */
body {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 14px !important;
}

/* Set 1 rem  */
html {
    font-size: 14px !important;
}
/* Ensure all Bootstrap components respect dark mode */
[data-theme="dark"] .modal-content,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .popover,
[data-theme="dark"] .tooltip-inner,
[data-theme="dark"] .toast,
[data-theme="dark"] .offcanvas {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-primary) !important;
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .nav-tabs .nav-link {
    margin-top: 20px;
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-primary) !important;
    border: none !important;
    border-bottom: 1px solid var(--border-primary) !important;
    color: var(--text-secondary) !important;
    border-radius: 0 !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) var(--border-primary) var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--accent-primary) !important;
}

[data-theme="dark"] .accordion-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
}

[data-theme="dark"] .accordion-button {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

/* Bootstrap close button in dark mode */
[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

[data-theme="dark"] .btn-close:hover {
    opacity: 1;
}

/* System preference dark mode support */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #000000;
        --bs-table-bg: #000000 !important;
        --bs-body-bg: #000000 !important;
        --bg-secondary: #111111;
        --bg-tertiary: #1a1a1a;
        --bg-card: #222222;
        --bg-hover: #2a2a2a;
        --bg-input: #333333;
        --text-primary: #e3e3e3;
        --bs-table-color-state: var(--text-primary) !important;
        --text-secondary: #e5e5e5;
        --text-muted: #a0a0a0 !important;
        --text-inverse: #000000;
        --border-primary: #444444;
        --border-secondary: #555555;
        --border-light: #333333;
        
        /* Bootstrap CSS Variables for System Dark Mode */
        --bs-body-color: #ffffff !important;
        --bs-body-bg: #000000 !important;
        --bs-emphasis-color: #ffffff !important;
        --bs-emphasis-color-rgb: 255, 255, 255 !important;
        --bs-secondary-color: #e5e5e5 !important;
        --bs-secondary-color-rgb: 229, 229, 229 !important;
        --bs-secondary-bg: #111111 !important;
        --bs-secondary-bg-rgb: 17, 17, 17 !important;
        --bs-tertiary-color: #a0a0a0 !important;
        --bs-tertiary-color-rgb: 160, 160, 160 !important;
        --bs-tertiary-bg: #1a1a1a !important;
        --bs-tertiary-bg-rgb: 26, 26, 26 !important;
        --bs-heading-color: #ffffff !important;
        --bs-link-color: #a1de56 !important;
        --bs-link-color-rgb: 161, 222, 86 !important;
        --bs-link-hover-color: #77ba58 !important;
        --bs-link-hover-color-rgb: 119, 186, 88 !important;
        --bs-code-color: #e5e5e5 !important;
        --bs-highlight-color: #ffffff !important;
        --bs-highlight-bg: #333333 !important;
        --bs-border-color: #444444 !important;
        --bs-border-color-translucent: rgba(68, 68, 68, 0.175) !important;
    }
}

.main-content {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.content-wrapper {
    background-color: var(--bg-secondary) !important;
}

.header {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.sidebar {
    background-color: var(--bg-primary) !important;
}

.sidebar-nav a {
    transition: all 0.2s ease;
    color: var(--text-secondary) !important;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--text-primary) !important;
}

.nav-group-title {
    color: var(--accent-primary) !important;
}

.card, .stats-card, .dashboard-card {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-primary) !important;
}

.form-control, .form-select, .form-input, .form-textarea {
    background-color: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-primary) !important;
    font-family: 'Poppins', 'Inter', sans-serif !important;
}

.form-control:focus, .form-select:focus, .form-input:focus, .form-textarea:focus {
    border-color: var(--accent-primary) !important;
    background-color: var(--bg-input) !important;
}

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

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

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

.modal-header {
    border-bottom: 1px solid var(--border-primary) !important;
}

.modal-footer {
    border-top: 1px solid var(--border-primary) !important;
}

/* Removed redundant table styles - using Bootstrap enhancements above */

.alert {
    border: 1px solid var(--border-primary) !important;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

 body {
   font-family: 'Poppins', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
   background: var(--bg-primary);
   color: var(--text-primary);
   line-height: 1.5;
   font-size: 14px;
   overflow-x: hidden;
 }

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.25;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Layout Components */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
}

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

.col-1 { flex: 0 0 calc(8.333% - var(--spacing-md)); }
.col-2 { flex: 0 0 calc(16.666% - var(--spacing-md)); }
.col-3 { flex: 0 0 calc(25% - var(--spacing-md)); }
.col-4 { flex: 0 0 calc(33.333% - var(--spacing-md)); }
.col-6 { flex: 0 0 calc(50% - var(--spacing-md)); }
.col-8 { flex: 0 0 calc(66.666% - var(--spacing-md)); }
.col-12 { flex: 0 0 100%; }

 /* Header */
 .header {
   background: var(--bg-secondary);
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   z-index: 1000;
 }

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.logo img {
    width: 100px;
    border-radius: 10px
}


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

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--accent-primary);
    background: var(--accent-bg);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-info {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Modern Theme Toggle */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    padding: 10px 15px; 
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.theme-toggle:hover {
    background: var(--bg-quaternary);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

 /* Sidebar */
 .sidebar {
   position: fixed;
   left: 0;
   top: 90px;
   height: calc(100vh - 90px);
   width: 220px;
   background: var(--bg-secondary);
   overflow-y: auto;
   z-index: 999;
   box-shadow: var(--shadow-md);
 }

.sidebar-nav {
    padding: var(--spacing-lg) 0;
}

.sidebar-nav .nav-group {
    margin-bottom: var(--spacing-xl);
}

.sidebar-nav .nav-group-title {
    padding: var(--spacing-sm) 0;
    font-size: 1rem;
    color: var(--accent-primary);
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-primary);
    margin-left: var(--spacing-xl);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin: 0 var(--spacing-md);
    border-radius: var(--radius-lg);
    gap: var(--spacing-md);
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    font-size: 1rem;
}

.sidebar-nav a.active {
    font-weight: 600;
}


/* Main Content */
.main-content {
    margin-left: 220px;
    margin-top: 90px;
    padding: var(--spacing-xl);
    min-height: calc(100vh - 60px);
}

.page-header {
    margin-bottom: var(--spacing-xl);
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-primary);
}

.page-title {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.page-title::before {
    content: "";
    width: 4px;
    height: 2rem;
    background: var(--accent-primary);
    border-radius: var(--radius-sm);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

/* Modern Cards */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    transition: all 0.2s ease;
}


.card-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: var(--spacing-xl);
}

.card-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modern Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.1);
    background: var(--bg-primary);
}

.form-control:hover {
    border-color: var(--text-muted);
}

.form-control.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px var(--danger-bg);
}

.form-select {
    padding-right: 3rem;
}

.form-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
    font-weight: 500;
}

.form-error {
    font-size: 0.75rem;
    color: var(--danger-color);
    margin-top: var(--spacing-xs);
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    min-height: 36px;
    user-select: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

.btn-primary:active:not(:disabled) {
    background: var(--accent-primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
}

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

 .btn-secondary:hover:not(:disabled) {
     background: var(--bg-hover);
     color: var(--text-primary);
 }

.btn-success {
    background: var(--success-color);
    color: var(--text-inverse);
}

.btn-success:hover:not(:disabled) {
    background: #16a34a;
}

.btn-danger {
    background: var(--danger-color);
    color: var(--text-inverse);
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-weight: 400
}

.btn-outline:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    min-height: 28px;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    min-height: 44px;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Modern Tables */
.table-container {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-primary);
}

/* Removed duplicate table styles - using Bootstrap table enhancements from above */

.table-responsive {
    overflow-x: auto;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-present {
    background: var(--present-bg);
    color: var(--present-color);
}

.status-absent {
    background: var(--absent-bg);
    color: var(--absent-color);
}

.status-active {
    color: var(--accent-primary);
}

.status-inactive {
    background: var(--danger-bg);
    color: var(--danger-color);
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning-color);
}

/* Modern Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

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

.badge-success { 
    background: var(--success-bg); 
    color: var(--success-color); 
}

.badge-warning { 
    background: var(--warning-bg); 
    color: var(--warning-color); 
}

.badge-danger { 
    background: var(--danger-bg); 
    color: var(--danger-color); 
}

.badge-info { 
    background: var(--info-bg); 
    color: var(--info-color); 
}

.text-success {
    color: var(--accent-primary) !important;
}
.text-warning {
    color: var(--warning-color) !important;
}
.text-danger {
    color: var(--danger-color);
}   


/* Modern Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stats-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-primary);
    text-align: center;
    transition: all 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.stats-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.stats-change.positive {
    color: var(--success-color);
}

.stats-change.negative {
    color: var(--danger-color);
}

/* Modern Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid var(--border-primary);
}

.modal-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.modal-title {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-xl);
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    background: var(--bg-secondary);
}

/* Modern Alerts */
.alert {
    padding: var(--spacing-lg);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    font-weight: 500;
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success-color);
}

.alert-error,
.alert-danger {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger-color);
}

.alert-warning {
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--warning-color);
}

.alert-info {
    background: var(--info-bg);
    border-color: var(--info-border);
    color: var(--info-color);
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

 .skeleton {
     background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
     background-size: 200% 100%;
     animation: loading 1.5s infinite;
     border-radius: var(--radius-md);
     height: 1rem;
 }

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-accent { color: var(--accent-primary); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-accent { background-color: var(--accent-primary); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline-block { display: inline-block; }
.d-inline-flex { display: inline-flex; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* Font Weight Utilities */
.font-weight-400 { font-weight: 400; }
.font-weight-500 { font-weight: 500; }
.font-weight-600 { font-weight: 600; }
.font-weight-700 { font-weight: 700; }

/* Modern Table Enhancements */
.table-container .table td {
    vertical-align: middle;
}

.table-container .table tr:hover {
    background: var(--accent-bg);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Icon Button Styles */
.btn .emoji {
    margin-right: var(--spacing-xs);
    font-size: 0.875em;
}

/* Compact Stats Grid */
.stats-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: var(--spacing-sm);
    text-align: center;
}

.stats-mini-item {
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
}

.stats-mini-number {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.stats-mini-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mr-0 { margin-right: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }

.m-1 { margin: var(--spacing-sm); }
.mt-1 { margin-top: var(--spacing-sm); }
.mr-1 { margin-right: var(--spacing-sm); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.ml-1 { margin-left: var(--spacing-sm); }

.m-2 { margin: var(--spacing-md); }
.mt-2 { margin-top: var(--spacing-md); }
.mr-2 { margin-right: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-md); }
.ml-2 { margin-left: var(--spacing-md); }

.m-3 { margin: var(--spacing-lg); }
.mt-3 { margin-top: var(--spacing-lg); }
.mr-3 { margin-right: var(--spacing-lg); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.ml-3 { margin-left: var(--spacing-lg); }

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pr-0 { padding-right: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }

.p-1 { padding: var(--spacing-sm); }
.pt-1 { padding-top: var(--spacing-sm); }
.pr-1 { padding-right: var(--spacing-sm); }
.pb-1 { padding-bottom: var(--spacing-sm); }
.pl-1 { padding-left: var(--spacing-sm); }

.p-2 { padding: var(--spacing-md); }
.pt-2 { padding-top: var(--spacing-md); }
.pr-2 { padding-right: var(--spacing-md); }
.pb-2 { padding-bottom: var(--spacing-md); }
.pl-2 { padding-left: var(--spacing-md); }

.p-3 { padding: var(--spacing-lg); }
.pt-3 { padding-top: var(--spacing-lg); }
.pr-3 { padding-right: var(--spacing-lg); }
.pb-3 { padding-bottom: var(--spacing-lg); }
.pl-3 { padding-left: var(--spacing-lg); }

.rounded { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }

.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.border { border: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.border-right { border-right: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-left { border-left: 1px solid var(--border-color); }

.hidden { display: none; }
.visible { display: block; }



 .login-card {
     background: var(--bg-card);
     border-radius: var(--radius-lg);
     box-shadow: var(--shadow-md);
     padding: var(--spacing-2xl);
     width: 100%;
     max-width: 450px;
     border: 1px solid var(--border-primary);
 }

.login-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.login-title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.875rem;
}

.login-subtitle {
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
    display: block !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-primary);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1002;
    flex-shrink: 0;
    position: absolute;
    top: 10px;
    right: 10px;
}

.mobile-menu-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.mobile-menu-btn .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 5px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-menu-btn .hamburger-icon span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger-icon {
    transform: rotate(180deg);
}

.mobile-menu-btn.active .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding: var(--spacing-lg);
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 240px;
        top: 0;
        height: 100vh;
        z-index: 1001;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .header-content {
        padding: var(--spacing-md) var(--spacing-md);
    }
    
    .nav {
        display: none;
    }
    
    .page-header {
        padding: var(--spacing-lg);
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .main-content {
        padding: var(--spacing-md);
    }
    
    .page-header {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }
    
    .card-header,
    .card-body,
    .card-footer {
        padding: var(--spacing-lg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .modal {
        margin: var(--spacing-md);
        width: calc(100% - 2rem);
    }
    
    .table th,
    .table td {
        padding: var(--spacing-md);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .login-card {
        padding: var(--spacing-xl);
        margin: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .user-menu {
        width: 100%;
        justify-content: space-between;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--spacing-md);
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .header,
    .btn,
    .modal,
    .theme-toggle {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .page-header {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Form Validation Styles */
.form-control.is-valid {
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='m6.564.75-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: var(--error);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23ef4444' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.2.4.4L6 4.6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--error);
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--success);
}

.form-control.is-valid ~ .valid-feedback {
    display: block;
}

/* Modern Micro Animations */
.animate-bounce-in {
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-slide-in-left {
    animation: slideInLeft 0.4s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* Button Hover Animations */
.btn, .btn-primary-modern, .btn-secondary-modern, .btn-danger-modern {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover, .btn-primary-modern:hover, .btn-secondary-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active, .btn-primary-modern:active, .btn-secondary-modern:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Card Hover Effects */
.content-card-modern, .table-row-modern {
    transition: all 0.3s ease;
}

.content-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.table-row-modern:hover {
    background: var(--bg-hover);
}


/* Modal Animations */
.modal-overlay-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay-modern:not(.hidden) {
    backdrop-filter: blur(4px);
}

/* Modal animations handled by JavaScript */

/* Actions Dropdown Animation */
.actions-menu {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1051 !important;
}

.actions-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Status Pills Animation */
.status-pill {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.status-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}


/* Form Input Animations */
.form-input-modern, .form-select-modern, .form-textarea-modern {
    transition: all 0.2s ease;
    position: relative;
}

.form-input-modern:focus, .form-select-modern:focus, .form-textarea-modern:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Checkbox Animations */
.checkbox-modern {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-modern:checked {
    animation: checkboxPop 0.3s ease;
}

/* Keyframe Definitions */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes checkboxPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Additional Animation Classes for Toast and Enhanced UX */
.animate-slide-out-right {
    animation: slideOutRight 0.3s ease-in forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-flip {
    animation: flip 0.6s ease-in-out;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes flip {
    0% {
        transform: perspective(400px) rotateY(0);
    }
    40% {
        transform: perspective(400px) rotateY(-90deg);
    }
    60% {
        transform: perspective(400px) rotateY(-90deg);
    }
    100% {
        transform: perspective(400px) rotateY(0);
    }
}

/* Loading State Enhancements */
.loading-spinner {
    border: 2px solid var(--bg-tertiary);
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Enhanced Button States */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Staggered Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Validation message styling */
.form-text {
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--text-muted);
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.5rem;
}

.password-strength-bar {
    height: 4px;
    background-color: var(--border-primary);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-weak .password-strength-fill {
    width: 33%;
    background-color: var(--error);
}

.password-strength-medium .password-strength-fill {
    width: 66%;
    background-color: var(--warning);
}

.password-strength-strong .password-strength-fill {
    width: 100%;
    background-color: var(--success);
} 
.view-toggle-btn {
    padding: 10px 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px;
}
.view-toggle-btn svg {
    width: 20px;
    height: 20px;
}
.user-info-cell {
    display: flex;
    gap: 10px;
}
svg {   
    width: 20px;
    height: 20px;
}

/* Custom Checkbox Styles */
.custom-checkbox {
    appearance: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid var(--border-primary) !important;
    border-radius: 4px !important;
    background-color: var(--bg-secondary) !important;
    cursor: pointer;
    position: relative !important;
    transition: all var(--transition-fast);
    flex-shrink: 0 !important;
    margin: 0 !important;
}

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

.custom-checkbox:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.custom-checkbox:checked {
    background-color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%) rotate(45deg) !important;
    width: 4px !important;
    height: 9px !important;
    border: solid #ffffff !important;
    border-width: 0 2.5px 2.5px 0 !important;
    display: block !important;
}

.custom-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-tertiary);
}

/* Apply to form-check-input when custom-checkbox class is present */
.form-check-input.custom-checkbox {
    margin-top: 0.125rem;
}

/* Class Detail Page */
.class-detail-hero {
    position: relative;
}

.class-detail-page .card.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.class-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.class-hero-back:hover {
    color: var(--accent-primary-dark, var(--accent-primary));
}

.class-hero-heading h2 {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.class-hero-heading .badge {
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.class-hero-coach {
    background-color: var(--bg-card);
}

.class-hero-coach-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.class-hero-stats .hero-stat {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    height: 100%;
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(15, 23, 42, 0.08));
}

.hero-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    display: block;
}

.hero-stat-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.class-action-grid {
    margin-top: 1.5rem;
}

.class-action-tile {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.class-action-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.25);
}

.class-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.class-action-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.class-action-title {
    font-weight: 600;
    font-size: 1rem;
}

.class-action-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.class-action-danger {
    border-color: rgba(239, 68, 68, 0.25);
}

.class-action-danger:hover {
    border-color: rgba(239, 68, 68, 0.5);
}

.class-action-tile.disabled,
.class-action-tile:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-primary);
}

.class-action-tile.disabled:hover,
.class-action-tile:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 767.98px) {
    .class-hero-heading h2 {
        font-size: 1.5rem;
    }

    .class-action-grid {
        margin-top: 1.25rem;
    }

    .class-action-tile {
        padding: 1rem;
    }
}

/* Custom Checkbox Styles */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-primary);
    border-radius: 4px;
    background-color: var(--bg-input);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin: 0;
}

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

.custom-checkbox:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.custom-checkbox:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    display: block;
}

.custom-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-tertiary);
}

/* Apply to form-check-input when custom-checkbox class is present */
.form-check-input.custom-checkbox {
    margin-top: 0.125rem;
}

/* Custom Checkbox Styles */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-primary);
    border-radius: 4px;
    background-color: var(--bg-input);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin: 0;
}

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

.custom-checkbox:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.custom-checkbox:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    display: block;
}

.custom-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-tertiary);
}

/* Apply to form-check-input when custom-checkbox class is present */
.form-check-input.custom-checkbox {
    margin-top: 0.125rem;
}
