/* Stolen Crypto Assets - Branded Styles */

/* Typography - Inter font family */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Enhanced Color System & Spacing */
:root {
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 20px;
    --space-4: 28px;
    --space-5: 40px;
    --space-6: 40px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
    --space-16: 128px;
    --space-20: 160px;
    --space-24: 192px;
    
    /* Enhanced Color Palette - Logo Blue Theme */
    --bg-neutral: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-elevated: #FEFEFE;
    
    /* Primary Colors - Logo Blue (#0F5185) */
    --primary-50: #E6F2FF;
    --primary-100: #CCE5FF;
    --primary-200: #99CCFF;
    --primary-300: #66B2FF;
    --primary-400: #3399FF;
    --primary-500: #0F5185;  /* LOGO COLOR */
    --primary-600: #0C4570;
    --primary-700: #0A395C;
    --primary-800: #082D47;
    --primary-900: #062133;
    
    /* Secondary Colors - Deep Purple */
    --secondary-50: #FAF5FF;
    --secondary-100: #E9D8FD;
    --secondary-200: #D6BCFA;
    --secondary-300: #B794F6;
    --secondary-400: #9F7AEA;
    --secondary-500: #805AD5;
    --secondary-600: #6B46C1;
    --secondary-700: #553C9A;
    --secondary-800: #44337A;
    --secondary-900: #322659;
    
    /* Accent Colors - Vibrant Crypto Theme */
    --accent-purple: #A855F7;
    --accent-indigo: #6366F1;
    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;
    --accent-rose: #F43F5E;
    --accent-cyan: #06B6D4;
    --accent-lime: #84CC16;
    
    /* Success Colors */
    --success-50: #ECFDF5;
    --success-100: #D1FAE5;
    --success-500: #10B981;
    --success-600: #059669;
    --success-700: #047857;
    
    /* Warning Colors */
    --warning-50: #FFFBEB;
    --warning-100: #FEF3C7;
    --warning-500: #F59E0B;
    --warning-600: #D97706;
    --warning-700: #B45309;
    
    /* Error Colors */
    --error-50: #FEF2F2;
    --error-100: #FEE2E2;
    --error-500: #EF4444;
    --error-600: #DC2626;
    --error-700: #B91C1C;
    
    /* Neutral Colors */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

/* ============================================
   BRAND UTILITY CLASSES
   ============================================ */
.bg-brand-gradient {
    background: linear-gradient(135deg, #0F5185 0%, #1a5b97 100%);
}

.bg-brand-gradient-hover:hover {
    background: linear-gradient(135deg, #0C4570 0%, #0F5185 100%);
}

.text-brand-primary {
    color: #0F5185;
}

.text-brand-primary-hover:hover {
    color: #0C4570;
}

.border-brand-primary {
    border-color: #0F5185;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #EDF2F7;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Enhanced Brand Gradients - Logo Theme */
.bg-gradient-primary {
    background: var(--primary-500); /* Solid logo blue */
}

.bg-gradient-secondary {
    background: var(--primary-50);
}

.bg-gradient-success {
    background: var(--success-500);
}

.bg-gradient-warning {
    background: var(--warning-500);
}

.bg-gradient-error {
    background: var(--error-500);
}

.bg-gradient-hero {
    background: var(--primary-500); /* Solid logo blue */
}

.bg-gradient-crypto {
    background: var(--primary-500); /* Solid logo blue */
}

/* Enhanced Table Styles */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead {
    background: var(--primary-500); /* Logo blue */
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table thead th {
    padding: 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-600);
}

.table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: var(--primary-50);
    transform: translateX(2px);
}

/* Zebra striping */
.table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.table tbody tr:nth-child(even):hover {
    background: var(--primary-50);
}

.table tbody td {
    padding: 16px;
    font-size: 14px;
    color: var(--gray-700);
}

.table tbody td.font-medium {
    color: var(--gray-900);
    font-weight: 600;
}

/* Right-align money columns */
.table td.text-right,
.table th.text-right {
    text-align: right;
}

/* Action buttons in tables */
.table-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-500);
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.table-action-btn:hover {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(15, 81, 133, 0.2);
}

.table-action-btn.danger {
    color: var(--error-600);
    background: var(--error-50);
    border-color: var(--error-200);
}

.table-action-btn.danger:hover {
    background: var(--error-600);
    color: white;
    border-color: var(--error-600);
}

.table-action-btn.success {
    color: var(--success-600);
    background: var(--success-50);
    border-color: var(--success-200);
}

.table-action-btn.success:hover {
    background: var(--success-600);
    color: white;
    border-color: var(--success-600);
}

/* Empty state */
.table-empty-state {
    text-align: center;
    padding: 48px 24px;
}

.table-empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.table-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.table-empty-state p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 20px;
}

/* Mobile Responsive Tables */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table thead {
        display: none;
    }
    
    .table tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--gray-200);
        border-radius: 8px;
        padding: 12px;
    }
    
    .table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
    }
    
    .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-600);
    }
}

/* Modern Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sleek Input Focus */
.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(15, 81, 133, 0.1);
    transform: scale(1.01);
}

/* Gradient Border Effect */
.gradient-border {
    position: relative;
    background: white;
    z-index: 1;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

/* Subtle Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Modern Shadows */
.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shadow-medium {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shadow-strong {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Sleek Button Variants */
.btn-sleek {
    background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 81, 133, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sleek:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 81, 133, 0.4);
}

.btn-sleek:active {
    transform: translateY(0);
}

/* Enhanced Card Styles with Glassmorphism */
.card {
    background: var(--bg-surface);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: var(--primary-200);
}

.card-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

/* Standardized Button Styles - CONSOLIDATED */

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

/* Enhanced Form Styles - CONSOLIDATED BELOW */

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.badge-pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-approved {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.badge-completed {
    background-color: #F3F4F6;
    color: #374151;
}

.badge-rejected {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(15, 81, 133, 0.2);
}

/* Balance Card with Glass Effect */
.balance-card {
    background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(15, 81, 133, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .w-64 {
        width: 100%;
    }
    
    .card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.8125rem;
    }
}

/* Loading Animation - Brand Colors */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(15, 81, 133, 0.2);
    border-radius: 50%;
    border-top-color: #3B82F6;
    animation: spin 0.8s ease-in-out infinite;
}

/* Notification Toast - Enhanced */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-success {
    border-left: 4px solid #10B981;
}

.toast-error {
    border-left: 4px solid #EF4444;
}

.toast-warning {
    border-left: 4px solid #F59E0B;
}

.toast-info {
    border-left: 4px solid #3B82F6;
}

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

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Glass Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Glass Dropdown */
.glass-dropdown {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Form Classes - CONSOLIDATED BELOW */

/* Button Classes - CONSOLIDATED BELOW */

/* Preset Amount Buttons */
.preset-amount {
    padding: 10px 16px;
    font-size: 14px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background: white;
    color: #374151;
    transition: all 0.2s ease;
    cursor: pointer;
}

.preset-amount:hover {
    border-color: #0F5185;
    color: #0F5185;
}

.preset-amount.active {
    border-color: #0F5185;
    background: #0F5185;
    color: white;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Floating Label Effect */
.floating-label {
    position: relative;
}

.floating-label .form-input {
    transition: all 0.2s ease;
}

.floating-label.focused .form-input {
    padding-top: 20px;
    padding-bottom: 8px;
}

.floating-label .form-label {
    position: absolute;
    top: 12px;
    left: 16px;
    transition: all 0.2s ease;
    pointer-events: none;
    color: #6B7280;
}

.floating-label.focused .form-label {
    top: 4px;
    left: 16px;
    font-size: 12px;
    color: #0F5185;
}

/* Input Icon Positioning */
.input-icon-left {
    padding-left: 40px;
}

.input-icon-right {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}


/* Touch Targets */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}

/* Mobile Menu Styles */
/* Mobile off-canvas sidebar (#mobile-sidebar) - SLIDE-UP MENU */
/* Note: User sidebar slides UP from bottom, not in from left */
/* The transform is handled by the inner div (#mobile-sidebar > div), not the container */
#mobile-sidebar {
    /* No transform on container - it's a full-screen overlay */
    /* Transform is on #mobile-sidebar > div (the white panel) */
    transform: none !important; /* Override any translateX that might conflict */
}

#mobile-sidebar.open {
    transform: none !important; /* Not used for slide-up menu */
}

/* Admin Mobile off-canvas sidebar (#admin-mobile-sidebar) - SLIDE-IN MENU */
#admin-mobile-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#admin-mobile-sidebar.open {
    transform: translateX(0);
}

/* Public Mobile off-canvas sidebar (#public-mobile-sidebar) - SLIDE-IN MENU */
#public-mobile-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#public-mobile-sidebar.open {
    transform: translateX(0);
}

/* Enhanced Form States */
.form-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-input.success {
    border-color: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Form Group States */
.form-group.has-error .form-input {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-group.has-success .form-input {
    border-color: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Input Wrapper for Icons */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 12px;
    pointer-events: none;
    z-index: 1;
}

.input-wrapper .form-input {
    padding-left: 40px;
}

.input-wrapper .validation-icon,
.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* Input padding adjustment for validation icon */
.form-group .relative:has(.validation-icon) .form-input {
    padding-right: 40px;
}

/* Input padding adjustment for validation icon + password toggle */
.form-group .relative:has(.validation-icon):has(.password-toggle) .form-input {
    padding-right: 80px;
}

/* Fallback for browsers without :has() support */
.form-input[data-validate] {
    padding-right: 40px;
}

.form-input[data-validate="password"] {
    padding-right: 80px;
}

.input-wrapper .form-input.has-icon-right {
    padding-right: 40px;
}

/* Character Counter */
.char-counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #6B7280;
    margin-top: 4px;
}

.char-counter.char-limit {
    color: #EF4444;
    font-weight: 600;
}

/* Form Error Message */
.form-error {
    display: none;
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
    align-items: center;
    gap: 4px;
}

.form-error:not(:empty) {
    display: flex;
}

.form-error::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23EF4444'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

/* Form Helper Text */
.form-helper {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-top: 4px;
}

/* Loading Overlay for Forms */
.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.form-loading-overlay .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #E5E7EB;
    border-top-color: #0F5185;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #E5E7EB;
    overflow: hidden;
    margin-bottom: 8px;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-fill.weak {
    width: 33%;
    background: #EF4444;
}

.password-strength-fill.medium {
    width: 66%;
    background: #F59E0B;
}

.password-strength-fill.strong {
    width: 100%;
    background: #10B981;
}

.password-strength-text {
    font-size: 12px;
    font-weight: 600;
}

.password-strength-text.weak {
    color: #EF4444;
}

.password-strength-text.medium {
    color: #F59E0B;
}

.password-strength-text.strong {
    color: #10B981;
}

.password-requirements {
    margin-top: 8px;
    font-size: 12px;
}

.password-requirements-list {
    list-style: none;
    padding: 0;
    margin: 4px 0;
}

.password-requirements-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: #6B7280;
}

.password-requirements-list li.valid {
    color: #10B981;
}

.password-requirements-list li::before {
    content: '○';
    font-size: 8px;
}

.password-requirements-list li.valid::before {
    content: '✓';
    color: #10B981;
}

.form-success {
    color: #10B981;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Loading States */
.loading-spinner {
    animation: spin 1s linear infinite;
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Success Animation */
.success-pulse {
    animation: success-pulse 0.6s ease-out;
}

@keyframes success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Shake Animation for Errors */
.shake-animation {
    animation: shake 0.5s ease-in-out;
}

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

/* Enhanced Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Better Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 81, 133, 0.15);
}

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

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Neomorphic Styles */
.neomorphic-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.08),
        -4px -4px 8px rgba(255, 255, 255, 0.95);
}

.neomorphic-inset {
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.1),
                inset -3px -3px 6px rgba(255, 255, 255, 0.9);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Enhanced Hover Effects */
.enhanced-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-interactive {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.card-interactive:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Button Size Variants */
.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
}

.btn-md {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 14px;
}

/* Glow Effects */
.glow-blue {
    box-shadow: 0 0 20px rgba(15, 81, 133, 0.5);
}

.glow-green {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

/* Enhanced Focus States */
*:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Enhanced Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #F9FAFB;
    border-bottom: 2px solid #E5E7EB;
}

/* Table readability enhancements */
table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: #F9FAFB;
    font-weight: 600;
    font-size: 12px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 24px;
    text-align: left;
    border-bottom: 2px solid #E5E7EB;
}

tbody tr {
    border-bottom: 1px solid #F3F4F6;
    transition: background-color 0.2s ease;
}

tbody tr:nth-child(even) {
    background-color: #F9FAFB;
}

tbody tr:hover {
    background-color: #F3F4F6;
}

tbody td {
    padding: 16px 24px;
    font-size: 14px;
    color: #111827;
}

/* Mobile-First Utilities */
.touch-target {
    min-width: 44px;
    min-height: 44px;
}

/* Mobile menu */
.mobile-menu-toggle {
    padding: 0.5rem;
    color: #4B5563;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    color: #111827;
}

.mobile-drawer {
    background: white;
    border-top: 1px solid #E5E7EB;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
}

/* Form animations */
.floating-label {
    position: relative;
}

.input-icon-left {
    padding-left: 2.5rem;
}

.input-icon-right {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Micro-interactions */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-effect:active::after {
    width: 300px;
    height: 300px;
}

/* Animation classes already defined above */

/* Responsive Breakpoints */
@media (max-width: 639px) {
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    /* Mobile dropdown positioning */
    .glass-dropdown {
        position: fixed !important;
        width: calc(100% - 32px) !important;
        right: 16px !important;
        left: auto !important;
        max-width: none !important;
    }
    
    /* Notification dropdown on mobile */
    #notifications-dropdown {
        width: 100% !important;
        max-width: calc(100vw - 32px) !important;
    }
    
    /* User menu on mobile */
    #user-menu {
        width: 100% !important;
        max-width: calc(100vw - 32px) !important;
    }
    
    /* Mobile menu toggle visibility */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Form improvements for mobile */
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Button improvements for mobile */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* Card improvements for mobile */
    .neomorphic-card {
        margin: 0 8px;
        border-radius: 16px;
    }
    
    /* Table improvements for mobile */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hide complex elements on mobile */
    .mobile-hide {
        display: none !important;
    }
    
    /* Mobile menu z-index fix */
    #mobile-menu {
        position: relative;
        z-index: 50;
    }
    
    /* Ensure header nav stays on top */
    .glass-nav {
        position: relative;
        z-index: 100;
    }
    
    /* Prevent horizontal scroll on mobile */
    body {
        overflow-x: hidden;
    }
    
}

@media (min-width: 640px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
    
}

@media (min-width: 1024px) {
    /* Desktop-specific improvements */
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Better spacing on desktop */
    .main-content {
        padding: 2rem;
    }
}

/* Skeleton Loading */
.skeleton {
    animation: skeleton-loading 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
    background-size: 200% 100%;
}

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

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

@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Animation Library */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Card Gradient Overlay */
.card-gradient-overlay {
    position: relative;
    overflow: hidden;
}

.card-gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Enhanced Typography */
h1, h2, h3 {
    letter-spacing: -0.02em;
}

h1.hero-gradient-text {
    background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats Card Modern */
.stats-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 81, 133, 0.1);
    position: relative;
    overflow: hidden;
}

.stats-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6 0%, #6366F1 100%);
}

/* Enhanced Chat Message Bubbles */
.message-bubble-user {
    background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.message-bubble-admin {
    background: #F3F4F6;
    color: #111827;
    border-radius: 18px 18px 18px 4px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .neomorphic-card {
        box-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.06),
            -2px -2px 4px rgba(255, 255, 255, 0.95);
    }
    
    .card-interactive:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

/* Additional Modern Features - ripple already defined above */

/* Stagger Animation */
.stagger-item {
    animation: fadeInUp 0.5s ease-out backwards;
}

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

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
}

.progress-shine {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6 0%, #6366F1 50%, #3B82F6 100%);
    background-size: 200% 100%;
    animation: shine 2s linear infinite;
}

@keyframes shine {
    to {
        background-position: -200% 0;
    }
}

/* Card Press Effect */
.card-press:active {
    transform: scale(0.98);
}

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

@keyframes notification-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Checkmark Animation */
.checkmark {
    animation: checkmark 0.6s ease-in-out;
}

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

/* Number Counter Animation */
.number-counter {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

/* Zebra Striping */
.zebra-stripe:nth-child(even) {
    background: #F9FAFB;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Focus Visible for Keyboard Navigation */
:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Enhanced Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6B7280;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #9CA3AF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state .btn {
    margin-top: 1rem;
}

/* Alert Styles with Icons */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.alert-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.alert-warning {
    background: #FFFBEB;
    border: 1px solid #FED7AA;
    color: #92400E;
}

.alert-info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
}

/* Gradient Mesh Background */
.gradient-mesh {
    background: 
        radial-gradient(at 0% 0%, rgba(15, 81, 133, 0.1) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.1) 0, transparent 50%);
}

/* Status Indicator Pulse */
.status-indicator {
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(15, 81, 133, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(15, 81, 133, 0);
    }
}

/* ============================================
   FORM STYLES - CONSOLIDATED
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.form-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    outline: none;
    border-color: #0F5185;
    box-shadow: 0 0 0 4px rgba(15, 81, 133, 0.1), 0 4px 12px rgba(15, 81, 133, 0.15);
    transform: translateY(-1px);
}

.form-input:hover:not(:focus):not(:disabled) {
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:disabled {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Form Validation States */
.form-input.is-valid,
.form-input.success {
    border-color: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.form-input.is-invalid,
.form-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-group.has-error .form-input {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-group.has-success .form-input {
    border-color: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Textarea specific styles */
.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    color: #1f2937;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-textarea:focus {
    outline: none;
    border-color: #0F5185;
    box-shadow: 0 0 0 4px rgba(15, 81, 133, 0.1), 0 4px 12px rgba(15, 81, 133, 0.15);
    transform: translateY(-1px);
}

.form-textarea:hover:not(:focus):not(:disabled) {
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Select dropdown */
.form-select {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 12px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #1f2937;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #0F5185;
    box-shadow: 0 0 0 4px rgba(15, 81, 133, 0.1), 0 4px 12px rgba(15, 81, 133, 0.15);
    transform: translateY(-1px);
}

.form-select:hover:not(:focus):not(:disabled) {
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.form-select:disabled {
    background-color: #f9fafb;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Helper text below inputs */
.form-helper-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 16px;
}

.form-error {
    display: none;
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    line-height: 16px;
}

.form-error:not(:empty) {
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-success {
    color: #10B981;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    line-height: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.form-grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .form-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Currency input wrapper */
.input-with-prefix {
    position: relative;
}

.input-with-prefix::before {
    content: '$';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-weight: 600;
    pointer-events: none;
}

.input-with-prefix .form-input {
    padding-left: 40px;
}

/* Preset amount buttons active state */
.preset-amount {
    transition: all 0.2s ease;
}

.preset-amount.active {
    background: #0F5185;
    color: #ffffff;
    border-color: #0F5185;
}

/* ============================================
   BUTTON STYLES - CONSOLIDATED
   ============================================ */
.btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #0F5185;
    color: #ffffff;
    border-color: #0F5185;
    box-shadow: 0 4px 12px rgba(15, 81, 133, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: #0C4570;
    border-color: #0C4570;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 81, 133, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(15, 81, 133, 0.2);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: #0F5185;
    border-color: #0F5185;
}

.btn-outline:hover:not(:disabled) {
    background: #0F5185;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 81, 133, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-500);
    border: none;
    box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--gray-100);
    color: var(--gray-700);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-500) 0%, var(--accent-rose) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    border-color: transparent;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, var(--error-600) 0%, var(--accent-rose) 100%);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-icon {
    padding: 8px;
}

.btn-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Form layout grids */
.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.form-grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .form-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Login/Register Card Styles */
.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Input wrapper for form validation */
.input-wrapper {
    position: relative;
}

.input-wrapper .validation-icon {
    pointer-events: none;
}

.input-wrapper.valid .validation-icon::before {
    content: '?';
    color: #10B981;
    font-weight: bold;
}

.input-wrapper.invalid .validation-icon::before {
    content: '?';
    color: #EF4444;
    font-weight: bold;
}

.form-error {
    display: none;
}

.input-wrapper.invalid .form-error {
    display: block;
}

/* Touch target for better mobile UX */
.touch-target {
    min-width: 44px;
    min-height: 44px;
}

/* Ensure mobile menu and notification buttons are above chat widgets */
#mobile-notifications-button,
button[aria-label="Toggle mobile menu"],
button[aria-label="Open notifications"] {
    z-index: 2147483647 !important;
    position: relative !important;
    pointer-events: auto !important;
}

/* Ensure SVG icons don't block clicks */
#mobile-notifications-button svg,
button[aria-label="Toggle mobile menu"] svg,
button[aria-label="Open notifications"] svg {
    pointer-events: none !important;
}

/* Ensure the mobile buttons container is above everything */
.md\:hidden.flex.items-center.gap-1 {
    z-index: 2147483647 !important;
    position: relative !important;
}

/* Ensure notifications dropdown is above all content including balance boxes */
#notifications-dropdown {
    z-index: 9999 !important;
    position: fixed !important;
}

@media (min-width: 768px) {
    #notifications-dropdown {
        position: absolute !important;
    }
}

/* Ensure mobile sidebar is above navigation and all content */
#mobile-sidebar {
    z-index: 2147483645 !important;
    position: fixed !important;
}

/* Improved Sidebar Styles */
.sidebar-item.active {
    background: #EBF5FF;
    color: #0F5185;
    font-weight: 600;
    border-left: 3px solid #0F5185;
}

.sidebar-item:hover {
    transform: translateX(2px);
}

/* Mobile Bottom Navigation */
@media (max-width: 768px) {
    /* Add padding to main content to account for bottom nav */
    main.fade-in {
        padding-bottom: 5rem !important;
    }
    
    /* Ensure mobile menu slides up smoothly */
    /* Initial state: menu is off-screen when hidden */
    #mobile-sidebar.hidden > div {
        transform: translateY(100%);
    }
    
    /* Visible state: menu slides up when not hidden */
    #mobile-sidebar:not(.hidden) > div {
        transform: translateY(0);
        transition: transform 0.3s ease-out;
    }
}

/* Desktop Sidebar Sticky */
@media (min-width: 768px) {
    aside.sticky {
        position: sticky;
        top: 0;
        max-height: 100vh;
    }
    
    /* Smooth scrollbar for sidebar */
    aside::-webkit-scrollbar {
        width: 6px;
    }
    
    aside::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    aside::-webkit-scrollbar-thumb {
        background: #0F5185;
        border-radius: 3px;
    }
    
    aside::-webkit-scrollbar-thumb:hover {
        background: #0C4570;
    }
}

/* Mobile Menu Slide-up Animation */
#mobile-sidebar {
    backdrop-filter: blur(4px);
}

/* Animation is handled by transition-based transform in media query (lines 2237-2244) */

/* Elevated FAB Button Effect */
.md\:hidden a[href*='cases.php'].bg-blue-600 {
    box-shadow: 0 4px 12px rgba(15, 81, 133, 0.4);
}

.md\:hidden a[href*='cases.php'].bg-blue-600:hover {
    box-shadow: 0 6px 16px rgba(15, 81, 133, 0.5);
}

/* Enhanced Sticky Header */
html {
    scroll-behavior: smooth;
}

nav.sticky {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
    transition: box-shadow 0.3s ease;
}

nav.sticky.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Ensure content doesn't jump under sticky header */
body {
    scroll-padding-top: 5rem;
}

/* Ensure main content appears above fixed body when menu is open */
body.menu-open main,
body.menu-open .flex > main,
body.menu-open > .flex {
    position: relative;
    z-index: 1;
}

/* Prevent body scroll when mobile menu is open (iOS fix) */
body.menu-open {
    position: fixed !important;
    width: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: auto !important;
    z-index: 0 !important; /* Ensure body doesn't cover content */
}

/* Prevent scrolling on mobile menu overlay */
#mobile-sidebar,
#mobile-overlay,
#public-mobile-sidebar,
#admin-mobile-sidebar {
    touch-action: none;
    overscroll-behavior: contain;
}

/* Allow scrolling only on menu content */
#mobile-sidebar > div,
#public-mobile-sidebar > div,
#admin-mobile-sidebar > div {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    body.menu-open {
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        z-index: 0 !important; /* Ensure body doesn't cover content */
    }
    
    /* Prevent pull-to-refresh on iOS */
    body.menu-open {
        overscroll-behavior-y: none;
    }
}

/* JivoSite Chat Widget - Mobile Positioning */
/* Move chat widget up on mobile to avoid obstructing bottom navigation */
@media (max-width: 767px) {
    /* Target JivoSite widget container */
    #jivo-widget-container,
    .jivo-widget-container,
    [id*="jivo"],
    [class*="jivo"] {
        bottom: 80px !important; /* Move up above bottom nav (64px height + 16px spacing) */
    }
    
    /* Target the chat button/bubble specifically */
    #jivo-widget-container > div,
    .jivo-widget-container > div,
    [id*="jivo"] > div {
        bottom: 80px !important;
    }
    
    /* Alternative selector for JivoSite widget */
    iframe[id*="jivo"],
    div[id*="jivo"] {
        bottom: 80px !important;
    }
}

/* Additional mobile-specific adjustments for chat widget */
@media (max-width: 640px) {
    /* Ensure chat widget doesn't overlap with bottom navigation on small screens */
    #jivo-widget-container,
    .jivo-widget-container,
    [id*="jivo"],
    [class*="jivo"] {
        bottom: 85px !important; /* Extra spacing on very small screens */
    }
}
