/* Modern UI Enhancements for BandSync Library */

/* CSS Variables for Consistent Theming */
:root {
    /* Custom Color Palette */
    --color-charcoal: #483C46;     /* Dark base color */
    --color-teal: #3C6E71;         /* Professional blue-green */
    --color-sage: #70AE6E;         /* Muted green */
    --color-lime: #BEEE62;         /* Bright accent */
    --color-orange: #F4743B;       /* Warm accent */
    
    /* Primary Colors */
    --primary: var(--color-teal);
    --primary-rgb: 60, 110, 113;
    --primary-dark: var(--color-charcoal);
    --primary-light: var(--color-sage);
    
    /* Secondary Colors */
    --secondary: var(--color-charcoal);
    --success: var(--color-sage);
    --info: var(--color-teal);
    --warning: var(--color-orange);
    --danger: #dc2626;
    --light: #fefefe;
    --dark: var(--color-charcoal);
    --accent: var(--color-lime);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-teal) 0%, var(--color-charcoal) 100%);
    --gradient-success: linear-gradient(135deg, var(--color-sage) 0%, var(--color-lime) 100%);
    --gradient-warning: linear-gradient(135deg, var(--color-orange) 0%, #ff6b35 100%);
    --gradient-hero: linear-gradient(135deg, var(--color-teal) 0%, var(--color-sage) 50%, var(--color-lime) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

/* Enhanced Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    font-variation-settings: 'opsz' 32;
    line-height: 1.6;
    background: linear-gradient(135deg, #fefefe 0%, #f5f7fa 100%);
    min-height: 100vh;
    color: var(--color-charcoal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-charcoal);
    letter-spacing: -0.025em;
}

/* Enhanced Button Styles */
.btn {
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: var(--shadow-sm);
    text-transform: none;
    letter-spacing: 0.01em;
}

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

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-charcoal) 100%);
    color: white;
    border: 1px solid var(--color-teal);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--color-teal);
    border-color: var(--color-charcoal);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(60, 110, 113, 0.3);
}

.btn-primary:active {
    background: var(--color-charcoal);
    border-color: var(--color-charcoal);
    transform: translateY(0);
}

.btn-success {
    background: var(--color-sage);
    color: white;
    border: 1px solid var(--color-sage);
}

.btn-success:hover {
    background: var(--color-lime);
    color: var(--color-charcoal);
    border-color: var(--color-sage);
}

.btn-warning {
    background: var(--color-orange);
    color: white;
    border: 1px solid var(--color-orange);
}

.btn-outline-primary {
    background: transparent;
    color: var(--color-teal);
    border: 2px solid var(--color-teal);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--color-teal);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(60, 110, 113, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-charcoal) 0%, #5a525a 100%);
    color: white;
    border: 1px solid var(--color-charcoal);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--color-charcoal);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(72, 60, 70, 0.3);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--color-charcoal);
    border: 2px solid var(--color-charcoal);
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background: var(--color-charcoal);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(72, 60, 70, 0.2);
}

.btn-info {
    background: var(--color-teal);
    color: white;
    border: 1px solid var(--color-teal);
    font-weight: 600;
}

.btn-info:hover {
    background: #2d5a5d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(60, 110, 113, 0.3);
}

.btn-outline-info {
    background: transparent;
    color: var(--color-teal);
    border: 2px solid var(--color-teal);
    font-weight: 600;
}

.btn-outline-info:hover {
    background: var(--color-teal);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(60, 110, 113, 0.2);
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-charcoal);
    border: 1px solid rgba(60, 110, 113, 0.2);
    font-weight: 600;
}

.btn-light:hover {
    background: white;
    color: var(--color-charcoal);
    border-color: var(--color-teal);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(60, 110, 113, 0.15);
}

.btn-dark {
    background: var(--color-charcoal);
    color: white;
    border: 1px solid var(--color-charcoal);
    font-weight: 600;
}

.btn-success {
    background: linear-gradient(135deg, var(--color-sage) 0%, #5a9558 100%);
    color: white;
    border: 1px solid var(--color-sage);
    font-weight: 600;
}

.btn-success:hover {
    background: var(--color-sage);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(112, 174, 110, 0.3);
}

.btn-outline-success {
    background: transparent;
    color: var(--color-sage);
    border: 2px solid var(--color-sage);
    font-weight: 600;
}

.btn-outline-success:hover {
    background: var(--color-sage);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(112, 174, 110, 0.2);
}

.btn-warning {
    background: linear-gradient(135deg, var(--color-orange) 0%, #e06934 100%);
    color: white;
    border: 1px solid var(--color-orange);
    font-weight: 600;
}

.btn-warning:hover {
    background: var(--color-orange);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 116, 59, 0.3);
}

.btn-outline-warning {
    background: transparent;
    color: var(--color-orange);
    border: 2px solid var(--color-orange);
    font-weight: 600;
}

.btn-outline-warning:hover {
    background: var(--color-orange);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 116, 59, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: 1px solid #dc2626;
    font-weight: 600;
}

.btn-danger:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.btn-outline-danger {
    background: transparent;
    color: #dc2626;
    border: 2px solid #dc2626;
    font-weight: 600;
}

.btn-outline-danger:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

/* Small Button Variants */
.btn-sm {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

/* Large Button Variants */
.btn-lg {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
}

/* Button Groups */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

/* Modern Card Design */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(60, 110, 113, 0.1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(60, 110, 113, 0.2);
}

.card-header {
    background: linear-gradient(135deg, rgba(60, 110, 113, 0.05) 0%, rgba(112, 174, 110, 0.05) 100%);
    border-bottom: 1px solid rgba(60, 110, 113, 0.15);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    color: var(--color-charcoal);
}

.card-body {
    padding: 1.5rem;
    color: var(--color-charcoal);
}

/* Enhanced Form Controls */
.form-control {
    border-radius: var(--radius);
    border: 2px solid rgba(60, 110, 113, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    height: auto;
    padding: 0.875rem 1rem;
    font-weight: 500;
    color: var(--color-charcoal);
    box-shadow: 0 2px 4px rgba(60, 110, 113, 0.05);
}

.form-control:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 0.25rem rgba(60, 110, 113, 0.15), 0 4px 8px rgba(60, 110, 113, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.form-control:hover:not(:focus) {
    border-color: rgba(60, 110, 113, 0.25);
    background: rgba(255, 255, 255, 1);
}

.form-control::placeholder {
    color: rgba(72, 60, 70, 0.5);
    font-style: italic;
    transition: opacity 0.3s ease;
}

.form-control:focus::placeholder {
    opacity: 0.7;
}

/* Enhanced Form Labels */
.form-label {
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label.required::after {
    content: '*';
    color: var(--color-orange);
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Custom Checkbox & Radio Styling */
.form-check {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    margin-left: -2rem;
    border: 2px solid rgba(60, 110, 113, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.form-check-input:checked {
    background-color: var(--color-teal);
    border-color: var(--color-teal);
    box-shadow: 0 0 0 0.25rem rgba(60, 110, 113, 0.15);
}

.form-check-label {
    color: var(--color-charcoal);
    font-weight: 500;
    cursor: pointer;
    margin-left: 0.5rem;
    line-height: 1.5;
}

/* Enhanced Select Dropdown */
.form-select {
    border-radius: var(--radius);
    border: 2px solid rgba(60, 110, 113, 0.15);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-charcoal);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(60, 110, 113, 0.05);
}

.form-select:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 0.25rem rgba(60, 110, 113, 0.15), 0 4px 8px rgba(60, 110, 113, 0.1);
    background-color: white;
    transform: translateY(-1px);
}

/* Form Validation & Feedback */
.form-control.is-valid {
    border-color: var(--color-sage);
    box-shadow: 0 0 0 0.25rem rgba(112, 174, 110, 0.15);
}

.form-control.is-invalid {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 0.25rem rgba(244, 116, 59, 0.15);
}

.valid-feedback {
    color: var(--color-sage);
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.invalid-feedback {
    color: var(--color-orange);
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.75rem;
}

.form-section {
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(60, 110, 113, 0.1);
    box-shadow: 0 2px 8px rgba(60, 110, 113, 0.05);
}

.form-section-title {
    color: var(--color-charcoal);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(60, 110, 113, 0.1);
}

/* Search Input Enhancements */
.search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input .form-control {
    padding-left: 2.75rem;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed rgba(60, 110, 113, 0.3);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, 
        rgba(112, 174, 110, 0.05) 0%, 
        rgba(60, 110, 113, 0.05) 100%);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(60, 110, 113, 0.1) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.file-upload-area:hover::before {
    left: 100%;
}

.file-upload-area:hover {
    border-color: var(--color-teal);
    background: linear-gradient(135deg, 
        rgba(112, 174, 110, 0.1) 0%, 
        rgba(60, 110, 113, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(60, 110, 113, 0.15);
}

.file-upload-icon {
    color: var(--color-teal);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.file-upload-text {
    color: var(--color-charcoal);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    color: rgba(72, 60, 70, 0.7);
    font-size: 0.9rem;
}

/* Input Group Enhancements */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    border-radius: var(--radius-md);
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    margin-bottom: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-charcoal);
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(60, 110, 113, 0.1) 0%, 
        rgba(112, 174, 110, 0.1) 100%);
    border: 1px solid rgba(60, 110, 113, 0.2);
    border-radius: var(--radius-md);
}

.input-group .form-control:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .form-control:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .input-group-text:first-child {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .input-group-text:last-child {
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ======================
   DATA VISUALIZATION & ANALYTICS
   ====================== */

/* Analytics Dashboard */
.analytics-container {
    padding: 0;
}

.analytics-header {
    background: linear-gradient(135deg, 
        rgba(60, 110, 113, 0.9) 0%, 
        rgba(112, 174, 110, 0.9) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.analytics-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(15deg);
}

.analytics-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%);
}

.analytics-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.analytics-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Metric Cards */
.metric-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 
        0 8px 25px rgba(60, 110, 113, 0.1),
        0 4px 10px rgba(72, 60, 70, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(60, 110, 113, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 35px rgba(60, 110, 113, 0.15),
        0 6px 15px rgba(72, 60, 70, 0.1);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--color-teal) 0%, 
        var(--color-sage) 50%, 
        var(--color-lime) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.metric-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.metric-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 100%);
    border-radius: 50%;
}

.metric-icon.teal {
    background: linear-gradient(135deg, var(--color-teal) 0%, rgba(60, 110, 113, 0.8) 100%);
}

.metric-icon.sage {
    background: linear-gradient(135deg, var(--color-sage) 0%, rgba(112, 174, 110, 0.8) 100%);
}

.metric-icon.lime {
    background: linear-gradient(135deg, var(--color-lime) 0%, rgba(190, 238, 98, 0.8) 100%);
}

.metric-icon.orange {
    background: linear-gradient(135deg, var(--color-orange) 0%, rgba(244, 116, 59, 0.8) 100%);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(72, 60, 70, 0.7);
    margin-bottom: 1rem;
}

.metric-change {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.metric-change.positive {
    color: var(--color-sage);
}

.metric-change.negative {
    color: var(--color-orange);
}

.metric-change.neutral {
    color: rgba(72, 60, 70, 0.6);
}

.metric-change i {
    margin-right: 0.25rem;
}

/* Chart Containers */
.chart-container {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 
        0 8px 25px rgba(60, 110, 113, 0.1),
        0 4px 10px rgba(72, 60, 70, 0.05);
    border: 1px solid rgba(60, 110, 113, 0.1);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.chart-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(60, 110, 113, 0.1);
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin: 0;
}

.chart-subtitle {
    font-size: 0.9rem;
    color: rgba(72, 60, 70, 0.7);
    margin-top: 0.25rem;
}

.chart-actions {
    display: flex;
    gap: 0.5rem;
}

.chart-action-btn {
    padding: 0.5rem;
    border: 1px solid rgba(60, 110, 113, 0.2);
    background: rgba(60, 110, 113, 0.05);
    border-radius: var(--radius-md);
    color: var(--color-teal);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.chart-action-btn:hover {
    background: rgba(60, 110, 113, 0.1);
    border-color: var(--color-teal);
}

.chart-canvas {
    position: relative;
    height: 400px;
    width: 100%;
}

.chart-canvas.small {
    height: 250px;
}

.chart-canvas.large {
    height: 500px;
}

/* Data Table Enhancements */
.analytics-table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(60, 110, 113, 0.1);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.analytics-table .table {
    margin-bottom: 0;
}

.analytics-table .table thead th {
    background: linear-gradient(135deg, 
        rgba(60, 110, 113, 0.1) 0%, 
        rgba(112, 174, 110, 0.05) 100%);
    border-bottom: 2px solid rgba(60, 110, 113, 0.2);
    font-weight: 600;
    color: var(--color-charcoal);
    padding: 1.25rem 1rem;
}

.analytics-table .table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(60, 110, 113, 0.1);
    color: rgba(72, 60, 70, 0.8);
}

.analytics-table .table tbody tr:hover {
    background: rgba(60, 110, 113, 0.05);
}

/* Filter Controls */
.analytics-filters {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(60, 110, 113, 0.1);
    backdrop-filter: blur(8px);
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-item {
    min-width: 150px;
}

.filter-label {
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
    display: block;
}

/* Progress Rings for Analytics */
.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-ring-circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.progress-ring-bg {
    stroke: rgba(60, 110, 113, 0.1);
}

.progress-ring-progress {
    stroke: var(--color-teal);
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-ring-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-charcoal);
}

.progress-ring-label {
    font-size: 0.75rem;
    color: rgba(72, 60, 70, 0.7);
    margin-top: 0.25rem;
}

/* Responsive Analytics */
@media (max-width: 768px) {
    .analytics-header {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .analytics-title {
        font-size: 2rem;
    }
    
    .metric-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .chart-container {
        padding: 1.5rem;
    }
    
    .chart-canvas {
        height: 300px;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .filter-item {
        min-width: 100%;
    }
    
    .analytics-filters {
        padding: 1.5rem;
    }
}

/* Loading States for Charts */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    flex-direction: column;
    color: var(--color-teal);
}

.chart-loading .loading-spinner {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.chart-loading-text {
    font-size: 1rem;
    font-weight: 500;
}

/* ======================
   LOADING STATES & SPINNERS
   ====================== */

/* Global Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(72, 60, 70, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Main Loading Spinner */
.loading-spinner {
    position: relative;
    width: 4rem;
    height: 4rem;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(60, 110, 113, 0.2);
    border-top: 3px solid var(--color-teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
    border: 2px solid rgba(112, 174, 110, 0.2);
    border-bottom: 2px solid var(--color-sage);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

/* Loading Text */
.loading-text {
    margin-top: 2rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    animation: pulse-text 2s ease-in-out infinite;
}

/* Button Loading States */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: not-allowed;
}

.btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.2rem;
    height: 1.2rem;
    margin: -0.6rem 0 0 -0.6rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Input Loading States */
.form-control.loading {
    background-image: url("data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cg fill='%233C6E71' fill-opacity='0.6'%3e%3cpath d='M10 1C5.03 1 1 5.03 1 10s4.03 9 9 9c1.95 0 3.77-.63 5.24-1.69l1.42 1.42A10.94 10.94 0 0 1 10 21C4.48 21 0 16.52 0 10S4.48-1 10-1c2.88 0 5.49 1.12 7.43 2.95L16 3.38A8.94 8.94 0 0 0 10 1z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    animation: spin-input 1s linear infinite;
}

/* Card Loading States */
.card.loading {
    position: relative;
    overflow: hidden;
}

.card.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(60, 110, 113, 0.1) 50%, 
        transparent 100%);
    animation: shimmer 1.5s ease-in-out infinite;
    z-index: 1;
}

.card.loading .card-body {
    opacity: 0.6;
    pointer-events: none;
}

/* Table Loading States */
.table-loading {
    position: relative;
    overflow: hidden;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.table-loading tbody {
    opacity: 0.5;
    pointer-events: none;
}

/* Skeleton Loading Placeholders */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(60, 110, 113, 0.1) 0%, 
        rgba(112, 174, 110, 0.15) 50%, 
        rgba(60, 110, 113, 0.1) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
    height: 1.2rem;
    margin-bottom: 0.5rem;
}

.skeleton.skeleton-text {
    height: 1rem;
}

.skeleton.skeleton-title {
    height: 1.5rem;
    width: 60%;
}

.skeleton.skeleton-paragraph {
    height: 0.9rem;
}

.skeleton.skeleton-paragraph:nth-child(odd) {
    width: 90%;
}

.skeleton.skeleton-paragraph:nth-child(even) {
    width: 75%;
}

.skeleton.skeleton-button {
    height: 2.5rem;
    width: 8rem;
    border-radius: var(--radius-md);
}

.skeleton.skeleton-image {
    height: 12rem;
    border-radius: var(--radius-lg);
}

/* Progress Bars */
.progress-bar-modern {
    width: 100%;
    height: 0.5rem;
    background: rgba(60, 110, 113, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--color-teal) 0%, 
        var(--color-sage) 100%);
    border-radius: var(--radius-sm);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: progress-shimmer 2s ease-in-out infinite;
}

/* Indeterminate Progress */
.progress-indeterminate {
    background: linear-gradient(90deg, 
        var(--color-teal) 0%, 
        var(--color-sage) 50%, 
        var(--color-lime) 100%);
    background-size: 200% 100%;
    animation: progress-indeterminate 1.5s ease-in-out infinite;
}

/* Loading Dots */
.loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.loading-dots span {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--color-teal);
    border-radius: 50%;
    animation: loading-dots 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Pulse Loading */
.loading-pulse {
    animation: loading-pulse 2s ease-in-out infinite;
}

/* Page Transition Loading */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(60, 110, 113, 0.1);
    z-index: 9998;
    overflow: hidden;
}

.page-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--color-teal) 0%, 
        var(--color-sage) 50%, 
        var(--color-lime) 100%);
    animation: page-loading 2s ease-in-out infinite;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spin-input {
    to { background-position: right -1rem center; }
}

@keyframes shimmer {
    to { left: 100%; }
}

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

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

@keyframes loading-dots {
    0%, 20%, 80%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

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

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes page-loading {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

/* Responsive Loading States */
@media (max-width: 768px) {
    .loading-spinner {
        width: 3rem;
        height: 3rem;
    }
    
    .loading-text {
        font-size: 1rem;
        margin-top: 1.5rem;
    }
    
    .skeleton.skeleton-image {
        height: 8rem;
    }
}

/* ======================
   TOAST NOTIFICATION SYSTEM
   ====================== */

/* Toast Container */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1060;
    width: 320px;
    pointer-events: none;
}

.toast-container.bottom-right {
    top: auto;
    bottom: 2rem;
    right: 2rem;
}

.toast-container.bottom-left {
    top: auto;
    bottom: 2rem;
    left: 2rem;
    right: auto;
}

.toast-container.top-left {
    top: 2rem;
    left: 2rem;
    right: auto;
}

.toast-container.top-center {
    top: 2rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* Toast Base Styles */
.toast {
    position: relative;
    margin-bottom: 1rem;
    min-height: 4rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(60, 110, 113, 0.15);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 25px rgba(72, 60, 70, 0.15),
        0 4px 10px rgba(60, 110, 113, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    pointer-events: auto;
    overflow: hidden;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Toast Header */
.toast-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem 0.75rem 1.25rem;
    background: transparent;
    border-bottom: 1px solid rgba(60, 110, 113, 0.1);
    position: relative;
}

.toast-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(60, 110, 113, 0.2) 50%,
        transparent 100%);
}

/* Toast Icon */
.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    margin-right: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Toast Title */
.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-charcoal);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

/* Toast Close Button */
.toast .btn-close {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.toast .btn-close::before {
    content: '×';
    font-size: 1.2rem;
    line-height: 1;
    color: var(--color-charcoal);
}

/* Toast Body */
.toast-body {
    padding: 0.75rem 1.25rem 1rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(72, 60, 70, 0.8);
}

/* Toast Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(60, 110, 113, 0.3) 0%,
        rgba(112, 174, 110, 0.5) 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transition: width 0.1s linear;
}

/* Toast Type Variations */

/* Success Toast */
.toast.toast-success {
    border-left: 4px solid var(--color-sage);
}

.toast.toast-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--color-sage) 0%,
        rgba(112, 174, 110, 0.7) 100%);
}

.toast.toast-success .toast-icon {
    background: linear-gradient(135deg, 
        rgba(112, 174, 110, 0.2) 0%, 
        rgba(112, 174, 110, 0.1) 100%);
    color: var(--color-sage);
}

.toast.toast-success .toast-progress {
    background: linear-gradient(90deg, 
        rgba(112, 174, 110, 0.4) 0%,
        var(--color-sage) 100%);
}

/* Error Toast */
.toast.toast-error {
    border-left: 4px solid var(--color-orange);
}

.toast.toast-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--color-orange) 0%,
        rgba(244, 116, 59, 0.7) 100%);
}

.toast.toast-error .toast-icon {
    background: linear-gradient(135deg, 
        rgba(244, 116, 59, 0.2) 0%, 
        rgba(244, 116, 59, 0.1) 100%);
    color: var(--color-orange);
}

.toast.toast-error .toast-progress {
    background: linear-gradient(90deg, 
        rgba(244, 116, 59, 0.4) 0%,
        var(--color-orange) 100%);
}

/* Warning Toast */
.toast.toast-warning {
    border-left: 4px solid var(--color-lime);
}

.toast.toast-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--color-lime) 0%,
        rgba(190, 238, 98, 0.7) 100%);
}

.toast.toast-warning .toast-icon {
    background: linear-gradient(135deg, 
        rgba(190, 238, 98, 0.3) 0%, 
        rgba(190, 238, 98, 0.15) 100%);
    color: #B8860B; /* Darker version of lime for better contrast */
}

.toast.toast-warning .toast-progress {
    background: linear-gradient(90deg, 
        rgba(190, 238, 98, 0.5) 0%,
        var(--color-lime) 100%);
}

/* Info Toast */
.toast.toast-info {
    border-left: 4px solid var(--color-teal);
}

.toast.toast-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--color-teal) 0%,
        rgba(60, 110, 113, 0.7) 100%);
}

.toast.toast-info .toast-icon {
    background: linear-gradient(135deg, 
        rgba(60, 110, 113, 0.2) 0%, 
        rgba(60, 110, 113, 0.1) 100%);
    color: var(--color-teal);
}

.toast.toast-info .toast-progress {
    background: linear-gradient(90deg, 
        rgba(60, 110, 113, 0.4) 0%,
        var(--color-teal) 100%);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .toast-container {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
    }
    
    .toast-container.top-center {
        transform: none;
    }
    
    .toast {
        margin-bottom: 0.75rem;
    }
    
    .toast-header {
        padding: 0.75rem 1rem 0.5rem 1rem;
    }
    
    .toast-body {
        padding: 0.5rem 1rem 0.75rem 1rem;
    }
}

/* ======================
   MODAL SYSTEM
   ====================== */

/* Modal Backdrop */
.modal-backdrop {
    background-color: rgba(72, 60, 70, 0.85);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.show {
    opacity: 1;
}

/* Modal Dialog */
.modal {
    display: none;
    position: fixed;
    z-index: 1055;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
    pointer-events: none;
    transform: scale(0.95) translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog-scrollable {
    height: calc(100% - 3.5rem);
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

/* Modal Content */
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 100%);
    background-clip: padding-box;
    border: 1px solid rgba(60, 110, 113, 0.15);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 20px 40px rgba(72, 60, 70, 0.15),
        0 8px 16px rgba(60, 110, 113, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    outline: 0;
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(60, 110, 113, 0.3) 20%,
        rgba(112, 174, 110, 0.4) 50%,
        rgba(60, 110, 113, 0.3) 80%,
        transparent 100%);
}

/* Modal Header */
.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, 
        rgba(60, 110, 113, 0.05) 0%, 
        rgba(112, 174, 110, 0.03) 100%);
    border-bottom: 1px solid rgba(60, 110, 113, 0.1);
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(60, 110, 113, 0.2) 0%,
        rgba(112, 174, 110, 0.3) 50%,
        rgba(60, 110, 113, 0.2) 100%);
    border-radius: 1px;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.4;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--color-charcoal);
    background: linear-gradient(135deg, 
        var(--color-charcoal) 0%, 
        var(--color-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal Close Button */
.btn-close {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    margin: 0;
    color: var(--color-charcoal);
    background: transparent;
    border: 1px solid rgba(60, 110, 113, 0.2);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-close:hover {
    opacity: 1;
    background: rgba(244, 116, 59, 0.1);
    border-color: rgba(244, 116, 59, 0.3);
    color: var(--color-orange);
    transform: rotate(90deg) scale(1.05);
}

.btn-close:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(244, 116, 59, 0.25);
}

.btn-close::before {
    content: '×';
    font-size: 1.4rem;
    line-height: 1;
}

/* Modal Body */
.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 2rem;
    color: var(--color-charcoal);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.3);
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 2rem 1.75rem 2rem;
    background: linear-gradient(135deg, 
        rgba(112, 174, 110, 0.03) 0%, 
        rgba(60, 110, 113, 0.05) 100%);
    border-top: 1px solid rgba(60, 110, 113, 0.1);
    gap: 0.75rem;
    position: relative;
}

.modal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(60, 110, 113, 0.2) 20%,
        rgba(112, 174, 110, 0.3) 50%,
        rgba(60, 110, 113, 0.2) 80%,
        transparent 100%);
}

.modal-footer > * {
    margin: 0;
}

/* Modal Size Variants */
.modal-sm {
    max-width: 300px;
}

.modal-lg {
    max-width: 800px;
}

.modal-xl {
    max-width: 1140px;
}

.modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

/* Confirmation Modal Styles */
.modal.confirmation-modal .modal-content {
    border-color: rgba(244, 116, 59, 0.3);
    box-shadow: 
        0 20px 40px rgba(244, 116, 59, 0.15),
        0 8px 16px rgba(244, 116, 59, 0.1);
}

.modal.confirmation-modal .modal-header {
    background: linear-gradient(135deg, 
        rgba(244, 116, 59, 0.1) 0%, 
        rgba(244, 116, 59, 0.05) 100%);
    border-bottom-color: rgba(244, 116, 59, 0.2);
}

.modal.confirmation-modal .modal-title {
    background: linear-gradient(135deg, 
        var(--color-orange) 0%, 
        var(--color-charcoal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal.confirmation-modal .modal-header::after {
    background: linear-gradient(90deg, 
        rgba(244, 116, 59, 0.3) 0%,
        rgba(244, 116, 59, 0.5) 50%,
        rgba(244, 116, 59, 0.3) 100%);
}

/* Success Modal Styles */
.modal.success-modal .modal-content {
    border-color: rgba(112, 174, 110, 0.3);
    box-shadow: 
        0 20px 40px rgba(112, 174, 110, 0.15),
        0 8px 16px rgba(112, 174, 110, 0.1);
}

.modal.success-modal .modal-header {
    background: linear-gradient(135deg, 
        rgba(112, 174, 110, 0.1) 0%, 
        rgba(112, 174, 110, 0.05) 100%);
    border-bottom-color: rgba(112, 174, 110, 0.2);
}

.modal.success-modal .modal-title {
    background: linear-gradient(135deg, 
        var(--color-sage) 0%, 
        var(--color-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal Animation Enhancements */
.modal.fade {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.fade .modal-dialog {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.9) translateY(-30px);
}

.modal.fade.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Modal Content Enhancements */
.modal-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(60, 110, 113, 0.1);
}

.modal-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-section-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-charcoal);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(60, 110, 113, 0.1);
}

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-icon.success {
    background: linear-gradient(135deg, 
        rgba(112, 174, 110, 0.2) 0%, 
        rgba(112, 174, 110, 0.1) 100%);
    color: var(--color-sage);
}

.modal-icon.warning {
    background: linear-gradient(135deg, 
        rgba(244, 116, 59, 0.2) 0%, 
        rgba(244, 116, 59, 0.1) 100%);
    color: var(--color-orange);
}

.modal-icon.info {
    background: linear-gradient(135deg, 
        rgba(60, 110, 113, 0.2) 0%, 
        rgba(60, 110, 113, 0.1) 100%);
    color: var(--color-teal);
}

/* Responsive Modal Behavior */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem 0.75rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem 1.25rem 1.5rem;
        flex-direction: column;
    }
    
    .modal-footer > * {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .modal-footer > *:last-child {
        margin-bottom: 0;
    }
}

/* Modal Loading States */
.modal-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.modal-spinner {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(60, 110, 113, 0.2);
    border-radius: 50%;
    border-top-color: var(--color-teal);
    animation: modal-spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes modal-spin {
    to { transform: rotate(360deg); }
}

.modal-loading-text {
    color: var(--color-charcoal);
    font-size: 1rem;
    font-weight: 500;
}

.search-input .search-icon {
    position: absolute;
    left: 1rem;
    color: var(--color-teal);
    opacity: 0.7;
    z-index: 3;
    pointer-events: none;
}

.form-control::placeholder {
    color: rgba(72, 60, 70, 0.5);
    font-style: italic;
    transition: opacity 0.3s ease;
}

.form-control:focus::placeholder {
    opacity: 0.7;
}

.form-label {
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label.required::after {
    content: '*';
    color: var(--color-orange);
    font-weight: 700;
    margin-left: 0.25rem;
}

.form-label .form-icon {
    color: var(--color-teal);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Floating Label Enhancement */
.form-floating {
    position: relative;
}

.form-floating .form-control {
    padding: 1.25rem 1rem 0.75rem;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 1rem;
    height: 100%;
    padding: 1.25rem 0 0.75rem;
    pointer-events: none;
    border: none;
    transform-origin: 0 0;
    transition: opacity 0.3s, transform 0.3s;
    color: rgba(72, 60, 70, 0.6);
    font-weight: 500;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    opacity: 1;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--color-teal);
}

/* Enhanced Table Styles */
.table {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(60, 110, 113, 0.12);
    margin-bottom: 0;
}

.table-responsive {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(60, 110, 113, 0.15);
}

.table thead th {
    background: linear-gradient(135deg, rgba(60, 110, 113, 0.08) 0%, rgba(112, 174, 110, 0.08) 100%);
    border: none;
    font-weight: 700;
    color: var(--color-charcoal);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 1.25rem 1rem;
    position: relative;
    border-bottom: 2px solid rgba(60, 110, 113, 0.15);
}

.table thead th:first-child {
    border-top-left-radius: var(--radius-lg);
}

.table thead th:last-child {
    border-top-right-radius: var(--radius-lg);
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-teal) 0%, var(--color-sage) 50%, var(--color-lime) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table thead th:hover::after {
    opacity: 0.6;
}

.table tbody tr {
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(60, 110, 113, 0.04) 0%, rgba(112, 174, 110, 0.04) 50%, rgba(190, 238, 98, 0.02) 100%);
    transform: translateX(2px);
    box-shadow: var(--shadow-sm);
}

.table tbody tr:nth-of-type(even) {
    background: linear-gradient(135deg, rgba(60, 110, 113, 0.015) 0%, rgba(112, 174, 110, 0.015) 100%);
}

.table tbody tr:nth-of-type(even):hover {
    background: linear-gradient(135deg, rgba(60, 110, 113, 0.06) 0%, rgba(112, 174, 110, 0.06) 50%, rgba(190, 238, 98, 0.03) 100%);
}

.table tbody td {
    border: none;
    padding: 1.25rem 1rem;
    vertical-align: middle;
    color: var(--color-charcoal);
    font-weight: 500;
    border-bottom: 1px solid rgba(60, 110, 113, 0.08);
    transition: all 0.2s ease;
}

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

/* Enhanced Alerts */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.25rem;
    backdrop-filter: blur(10px);
}

.alert-info {
    background: linear-gradient(135deg, rgba(60, 110, 113, 0.1) 0%, rgba(60, 110, 113, 0.05) 100%);
    border-left-color: var(--color-teal);
    color: var(--color-charcoal);
}

.alert-success {
    background: linear-gradient(135deg, rgba(112, 174, 110, 0.1) 0%, rgba(190, 238, 98, 0.1) 100%);
    border-left-color: var(--color-sage);
    color: var(--color-charcoal);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(244, 116, 59, 0.1) 0%, rgba(244, 116, 59, 0.05) 100%);
    border-left-color: var(--color-orange);
    color: var(--color-charcoal);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-left-color: var(--danger);
    color: var(--color-charcoal);
}

/* Enhanced Navigation */
.navbar {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(60, 110, 113, 0.2);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-charcoal) !important;
    text-decoration: none;
}

.nav-link {
    font-weight: 600;
    color: var(--color-charcoal) !important;
    transition: all 0.2s ease;
    border-radius: var(--radius);
    margin: 0 0.25rem;
    opacity: 1;
}

.nav-link:hover {
    color: var(--color-teal) !important;
    background: rgba(60, 110, 113, 0.1);
    opacity: 1;
}

.nav-link.active {
    color: var(--color-teal) !important;
    background: rgba(60, 110, 113, 0.15);
    opacity: 1;
}
    opacity: 1;
}

/* Enhanced Badges */
.badge {
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    letter-spacing: 0.025em;
}

/* Enhanced Dropdowns */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius);
    margin: 0.125rem 0;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--color-charcoal) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(135deg, rgba(60, 110, 113, 0.1) 0%, rgba(112, 174, 110, 0.1) 100%) !important;
    color: var(--color-teal) !important;
    transform: translateX(2px);
}

.dropdown-header {
    color: var(--color-charcoal) !important;
    font-weight: 600;
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.6;
}

/* Enhanced Progress Bars */
.progress {
    height: 0.875rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(60, 110, 113, 0.1) 0%, rgba(112, 174, 110, 0.1) 100%);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(60, 110, 113, 0.1);
}

.progress-bar {
    border-radius: var(--radius);
    background: var(--gradient-primary);
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.1) 50%, transparent 50%, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    animation: progress-shine 2s linear infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Progress Bar Color Variants */
.progress-bar.bg-success {
    background: linear-gradient(135deg, var(--color-sage) 0%, #5a9558 100%);
}

.progress-bar.bg-warning {
    background: linear-gradient(135deg, var(--color-orange) 0%, #e06934 100%);
}

.progress-bar.bg-info {
    background: linear-gradient(135deg, var(--color-teal) 0%, #2d5a5d 100%);
}

.progress-bar.bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
    transition: width 0.6s ease;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .card {
        margin: 1rem;
        border-radius: var(--radius);
    }
    
    .table-responsive {
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }
    
    .table thead th {
        padding: 1rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .table tbody td {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .table .btn-action {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .datatable-search {
        min-width: 200px;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.6rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .btn {
        display: none;
    }
}

/* Dark Mode Support - Modern Sleek Theme */
@media (prefers-color-scheme: dark) {
    :root {
        /* Accent Colors */
        --accent: #08ADCB;
        --accent-2: #079CBC;
        --accent-hover: #2FC4DE;
        
        /* Neutrals */
        --bg: #0B1220;
        --surface: #111B2E;
        --surface-2: #16233B;
        --border: #243454;
        --shadow: rgba(0, 0, 0, 0.45);
        
        /* Text */
        --text: #EAF1FF;
        --text-2: #B7C3DD;
        --muted: #7F91B8;
        
        /* Status Chips */
        --success: #22C55E;
        --warning: #FBBF24;
        --danger: #FB7185;
        --info: #60A5FA;
        
        /* Legacy compatibility */
        --light: var(--surface-2);
        --dark: var(--text);
        --primary: var(--accent);
        --primary-rgb: 8, 173, 203;
        --color-lime: var(--accent);
        --color-teal: var(--accent);
        --color-sage: var(--success);
        --color-orange: var(--warning);
        --color-charcoal: var(--surface-2);
    }
    
    body {
        background: var(--bg);
        color: var(--text);
    }
    
    .card {
        background: var(--surface);
        color: var(--text);
        border: 1px solid var(--border);
        box-shadow: 0 4px 6px var(--shadow);
    }
    
    /* Elevated surfaces */
    .modal-content,
    .navbar,
    .dropdown-menu {
        background: var(--surface-2);
        color: var(--text);
        border-color: var(--border);
    }
    
    /* Buttons */
    .btn-primary {
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
        border-color: var(--accent);
        color: var(--text);
    }
    
    .btn-primary:hover {
        background: var(--accent-hover);
        border-color: var(--accent-hover);
        color: var(--text);
    }
    
    .btn-accent {
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
        border-color: var(--accent);
        color: var(--text);
    }
    
    .btn-accent:hover {
        background: var(--accent-hover);
        color: var(--text);
    }
    
    /* Status badges */
    .badge-success,
    .badge.bg-success {
        background-color: var(--success) !important;
        color: var(--bg) !important;
    }
    
    .badge-warning,
    .badge.bg-warning {
        background-color: var(--warning) !important;
        color: var(--bg) !important;
    }
    
    .badge-danger,
    .badge.bg-danger {
        background-color: var(--danger) !important;
        color: var(--text) !important;
    }
    
    .badge-info,
    .badge.bg-info {
        background-color: var(--info) !important;
        color: var(--bg) !important;
    }
    
    /* Text colors */
    h1, h2, h3, h4, h5, h6 {
        color: var(--text);
    }
    
    .text-muted {
        color: var(--muted) !important;
    }
    
    .text-secondary {
        color: var(--text-2) !important;
    }
    
    /* Borders */
    .border,
    hr {
        border-color: var(--border) !important;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        background-color: var(--surface);
        color: var(--text);
        border-color: var(--border);
    }
    
    .form-control:focus,
    .form-select:focus {
        background-color: var(--surface);
        color: var(--text);
        border-color: var(--accent);
        box-shadow: 0 0 0 0.25rem rgba(8, 173, 203, 0.25);
    }
    
    .form-control::placeholder {
        color: var(--muted);
    }
    
    /* Links */
    a {
        color: var(--accent);
    }
    
    a:hover {
        color: var(--accent-hover);
    }
    
    /* Tables */
    .table {
        color: var(--text);
    }
    
    .table-striped tbody tr:nth-of-type(odd) {
        background-color: var(--surface);
    }
    
    .table-hover tbody tr:hover {
        background-color: var(--surface-2);
        color: var(--text);
    }
    
    /* Pagination */
    .pagination .page-link {
        background-color: var(--surface);
        color: var(--text);
        border-color: var(--border);
    }
    
    .pagination .page-link:hover {
        background-color: var(--accent);
        color: var(--text);
        border-color: var(--accent);
    }
    
    .pagination .page-item.active .page-link {
        background-color: var(--accent);
        border-color: var(--accent);
        color: var(--text);
    }
    
    /* Dropdowns */
    .dropdown-item {
        color: var(--text);
    }
    
    .dropdown-item:hover {
        background-color: var(--surface);
        color: var(--accent-hover);
    }
    
    /* Alerts */
    .alert {
        border-color: var(--border);
    }
    
    .alert-success {
        background-color: rgba(34, 197, 94, 0.1);
        color: var(--success);
        border-color: var(--success);
    }
    
    .alert-warning {
        background-color: rgba(251, 191, 36, 0.1);
        color: var(--warning);
        border-color: var(--warning);
    }
    
    .alert-danger {
        background-color: rgba(251, 113, 133, 0.1);
        color: var(--danger);
        border-color: var(--danger);
    }
    
    .alert-info {
        background-color: rgba(96, 165, 250, 0.1);
        color: var(--info);
        border-color: var(--info);
    }
}

/* Custom Utility Classes */
.glass {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-colored {
    box-shadow: 0 10px 25px rgba(60, 110, 113, 0.15);
}

/* Accent Elements with Lime Color */
.accent-highlight {
    background: linear-gradient(135deg, var(--color-lime), rgba(190, 238, 98, 0.8));
    color: var(--color-charcoal);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
}

.accent-border {
    border-left: 4px solid var(--color-lime);
}

.accent-glow {
    box-shadow: 0 0 20px rgba(190, 238, 98, 0.3);
}

/* Accent Button Styles */
.btn-accent {
    background: linear-gradient(135deg, var(--color-lime) 0%, #a8d456 100%);
    color: var(--color-charcoal);
    border: 1px solid var(--color-lime);
    font-weight: 700;
}

.btn-accent:hover {
    background: var(--color-lime);
    color: var(--color-charcoal);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(190, 238, 98, 0.4);
}

.btn-outline-accent {
    background: transparent;
    color: var(--color-lime);
    border: 2px solid var(--color-lime);
    font-weight: 600;
}

.btn-outline-accent:hover {
    background: var(--color-lime);
    color: var(--color-charcoal);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(190, 238, 98, 0.3);
}

/* Enhanced Text Colors */
.text-primary {
    color: var(--color-teal) !important;
}

.text-success {
    color: var(--color-sage) !important;
}

.text-warning {
    color: var(--color-orange) !important;
}

.text-muted {
    color: var(--color-charcoal) !important;
    opacity: 0.7;
}

/* Enhanced Pagination */
.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    border: 2px solid transparent;
    border-radius: var(--radius);
    color: var(--color-charcoal);
    background: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.75rem 1rem;
    margin: 0 0.125rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.pagination .page-link:hover {
    color: white;
    background: linear-gradient(135deg, var(--color-teal), var(--color-sage));
    border-color: var(--color-teal);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.pagination .page-item.active .page-link {
    color: white;
    background: linear-gradient(135deg, var(--color-charcoal), var(--color-teal));
    border-color: var(--color-charcoal);
    box-shadow: var(--shadow-md);
}

.pagination .page-item.disabled .page-link {
    color: rgba(72, 60, 70, 0.4);
    background: rgba(255, 255, 255, 0.6);
    border-color: transparent;
    box-shadow: none;
}

/* Data Table Enhancements */
.datatable-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    border: 1px solid rgba(60, 110, 113, 0.15);
}

.datatable-search input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(60, 110, 113, 0.2);
    border-radius: var(--radius);
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.datatable-search input:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 0.25rem rgba(60, 110, 113, 0.15);
    background: white;
}

/* Data Table Enhancements */
.datatable-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    border: 1px solid rgba(60, 110, 113, 0.15);
}

.datatable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.datatable-search {
    position: relative;
    min-width: 250px;
}

.datatable-search input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(60, 110, 113, 0.2);
    border-radius: var(--radius);
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.datatable-search input:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 0.25rem rgba(60, 110, 113, 0.15);
    background: white;
}

.datatable-search .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-teal);
    opacity: 0.7;
}

.datatable-info {
    font-size: 0.9rem;
    color: var(--color-charcoal);
    opacity: 0.8;
    font-weight: 500;
}

.pagination .page-link {
    border: 2px solid transparent;
    border-radius: var(--radius);
    color: var(--color-charcoal);
    background: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.75rem 1rem;
    margin: 0 0.125rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.pagination .page-link:hover {
    color: white;
    background: linear-gradient(135deg, var(--color-teal), var(--color-sage));
    border-color: var(--color-teal);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.pagination .page-item.active .page-link {
    color: white;
    background: linear-gradient(135deg, var(--color-charcoal), var(--color-teal));
    border-color: var(--color-charcoal);
    box-shadow: var(--shadow-md);
}

.pagination .page-item.disabled .page-link {
    color: rgba(72, 60, 70, 0.4);
    background: rgba(255, 255, 255, 0.6);
    border-color: transparent;
    box-shadow: none;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(60, 110, 113, 0.25);
    border-color: var(--color-teal);
}

.hover-lift {
    transition: transform 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}