/* Modern Admin Design - Harmonized Color Palette */
:root {
    /* Primary Color Scheme - Professional Blue Gradient */
    --primary-color: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    
    /* Secondary Colors - Complementary Palette */
    --secondary-color: #06b6d4;
    --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    
    /* Status Colors - Harmonized Set */
    --success-color: #10b981;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    --info-color: #3b82f6;
    --info-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    
    --warning-color: #f59e0b;
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    --danger-color: #ef4444;
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    /* Neutral Colors */
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --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;
    
    /* Design System */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    --box-shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-backdrop: blur(20px);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--gray-800);
    padding-top: 80px; /* Compensation for fixed navbar */
    position: relative;
}

/* Enhanced Background with Particles Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Animated Background Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 150px;
    animation: particles 20s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

@keyframes particles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

/* Modern Card Styles */
.modern-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.8s ease;
}

.modern-card:hover::before {
    left: 100%;
}

.modern-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(79, 70, 229, 0.2),
        0 0 0 1px rgba(79, 70, 229, 0.1);
    border-color: var(--primary-light);
}

/* Glass Effect Enhancement */
.modern-card.enhanced-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.modern-card.enhanced-glass:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 20px 60px rgba(79, 70, 229, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Modern Container */
.modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Modern Headers */
.modern-header {
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.modern-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.modern-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin: 0;
}

/* Modern Card Headers */
.modern-card-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: -2rem -2rem 2rem -2rem;
}

.modern-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.modern-card-body {
    padding: 0;
}

/* Modern Buttons */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.modern-btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    color: white;
}

.modern-btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.modern-btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.modern-btn-outline-secondary {
    background: transparent;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
}

.modern-btn-outline-secondary:hover {
    background: var(--gray-600);
    color: white;
    border-color: var(--gray-600);
}

.modern-btn-outline-danger {
    background: transparent;
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
}

.modern-btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
}

.modern-btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* Modern Forms */
.modern-form {
    background: none;
}

.modern-form-group {
    margin-bottom: 1.5rem;
}

.modern-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.modern-input, .modern-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    transition: var(--transition);
    background: white;
}

.modern-input:focus, .modern-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Modern Tables */
.modern-table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.modern-table-head {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.modern-table-head th {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--gray-700);
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
    font-size: 0.875rem;
}

.modern-table-body {
    background: white;
}

.modern-table-row {
    transition: var(--transition);
}

.modern-table-row:hover {
    background: var(--gray-50);
}

.modern-table-row td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.modern-cell-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modern-cell-title {
    font-weight: 600;
    color: var(--gray-900);
}

.modern-cell-text {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Modern Badges */
.modern-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.modern-badge-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modern-badge-light {
    background: var(--gray-50);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

/* Modern Action Groups */
.modern-action-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

/* Modern Empty State */
.modern-empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.modern-empty-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.modern-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.modern-empty-subtitle {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* Modern Pagination */
.modern-card-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    margin: 2rem -2rem -2rem -2rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.modern-pagination-info {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Modern Notifications */
.modern-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1050;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    padding: 1.5rem;
    max-width: 400px;
    border-left: 4px solid var(--primary-color);
}

.modern-notification-success {
    border-left-color: var(--success-color);
}

.modern-notification-error {
    border-left-color: var(--danger-color);
}

.modern-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.modern-notification-icon {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.modern-notification-text strong {
    color: var(--gray-900);
    font-weight: 600;
}

.modern-notification-text p {
    color: var(--gray-600);
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
}

.modern-notification-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1rem;
}

.modern-notification-close:hover {
    color: var(--gray-600);
}

/* Glass Navbar */
.glass-navbar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.15);
}

.glass-navbar .navbar-brand {
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-navbar .nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    transition: var(--transition);
}

.glass-navbar .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Modern Buttons */
.btn-modern {
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    letter-spacing: 0.025em;
    font-size: 0.875rem;
    padding: 14px 28px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-modern-primary:hover {
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.btn-modern-success {
    background: var(--success-gradient);
    color: white;
}

.btn-modern-success:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-modern-danger {
    background: var(--danger-gradient);
    color: white;
}

.btn-modern-danger:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.btn-modern-info {
    background: var(--info-gradient);
    color: white;
}

.btn-modern-info:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-modern-warning {
    background: var(--warning-gradient);
    color: white;
}

.btn-modern-warning:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Modern Form Controls */
.form-control-modern {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 14px 18px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--glass-bg);
    color: var(--gray-800);
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: white;
    outline: none;
}

.form-control-modern::placeholder {
    color: var(--gray-400);
}

.form-select-modern {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 14px 18px;
    background: var(--glass-bg);
    transition: var(--transition);
    color: var(--gray-800);
}

.form-select-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-label {
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Modern Table */
.table-modern {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-100);
}

.table-modern thead th {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    padding: 1.25rem 1rem;
    border: none;
    position: relative;
}

.table-modern thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.table-modern tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-100);
}

.table-modern tbody tr:hover {
    background: rgba(79, 70, 229, 0.04);
    transform: translateX(4px);
}

.table-modern tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    color: var(--gray-700);
}

.table-modern .btn-group-sm .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Modern Badges */
.badge-modern {
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-modern-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.badge-modern-warning {
    background: var(--warning-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.badge-modern-danger {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.badge-modern-info {
    background: var(--info-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Modern Icons */
.icon-modern {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: var(--transition);
}

.icon-modern:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

/* Status Colors for Icons */
.icon-success {
    background: var(--success-gradient) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.icon-warning {
    background: var(--warning-gradient) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.icon-danger {
    background: var(--danger-gradient) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.icon-info {
    background: var(--info-gradient) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Dashboard Cards */
.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    transition: transform 0.8s ease;
    transform: scale(0);
}

.dashboard-card:hover::after {
    transform: scale(1);
}

.dashboard-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 25px 80px rgba(79, 70, 229, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(79, 70, 229, 0.3);
}

.dashboard-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    background: var(--primary-gradient);
    margin-bottom: 1.5rem;
    box-shadow: 
        0 10px 30px rgba(79, 70, 229, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.dashboard-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.5);
}

.dashboard-card .counter {
    font-size: 3rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-card h5 {
    color: var(--gray-600);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

/* Enhanced Progress Bars */
.dashboard-card .progress {
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.dashboard-card .progress-bar {
    border-radius: 50px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-card .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Search Box */
.search-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--box-shadow);
}

/* Sidebar */
.modern-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-item {
    border-radius: 12px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.sidebar-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.sidebar-item.active {
    background: var(--primary-gradient);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.pulse-on-hover:hover {
    animation: pulse 1s ease-in-out infinite;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Staggered Animation Delays */
.animation-delay-1 { animation-delay: 0.1s; }
.animation-delay-2 { animation-delay: 0.2s; }
.animation-delay-3 { animation-delay: 0.3s; }
.animation-delay-4 { animation-delay: 0.4s; }
.animation-delay-5 { animation-delay: 0.5s; }
.animation-delay-6 { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .dashboard-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .btn-modern {
        padding: 12px 20px;
        font-size: 0.8rem;
    }
    
    .modern-card {
        padding: 1.5rem;
    }
    
    .icon-modern {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .counter {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .dashboard-card {
        padding: 1rem;
    }
    
    .btn-modern {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
    
    .dashboard-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .counter {
        font-size: 1.8rem !important;
    }
    
    .display-4 {
        font-size: 1.8rem !important;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Page Transition Effects */
.page-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Focus States */
.form-control-modern:focus,
.form-select-modern:focus,
.btn-modern:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(31, 41, 55, 0.95);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
    
    body {
        color: var(--gray-100);
    }
    
    .modern-card {
        background: rgba(31, 41, 55, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .table-modern {
        background: var(--gray-800);
        color: var(--gray-100);
    }
    
    .table-modern tbody tr:hover {
        background: rgba(79, 70, 229, 0.15);
    }
}

/* Enhanced Dashboard Styles */
.modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: var(--transition);
}

.enhanced-glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.18);
}

.dashboard-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.dashboard-icon.icon-success {
    background: var(--success-gradient);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.dashboard-icon.icon-info {
    background: var(--info-gradient);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.dashboard-icon.icon-warning {
    background: var(--warning-gradient);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.dashboard-card:hover::before {
    left: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.pulse-on-hover:hover {
    animation: pulse 2s infinite;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Animation delays */
.animation-delay-1 { animation-delay: 0.1s; }
.animation-delay-2 { animation-delay: 0.2s; }
.animation-delay-3 { animation-delay: 0.3s; }
.animation-delay-4 { animation-delay: 0.4s; }
.animation-delay-5 { animation-delay: 0.5s; }
.animation-delay-6 { animation-delay: 0.6s; }

/* Fade in animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Counter animation */
.counter {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge styles */
.badge-modern {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.badge-modern-success {
    background: var(--success-gradient);
    color: white;
}

.badge-modern-info {
    background: var(--info-gradient);
    color: white;
}

.badge-modern-warning {
    background: var(--warning-gradient);
    color: white;
}

.badge-modern-danger {
    background: var(--danger-gradient);
    color: white;
}

/* Icon modern styles */
.icon-modern {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.icon-modern.icon-success {
    background: var(--success-gradient);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.icon-modern.icon-warning {
    background: var(--warning-gradient);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Button modern styles */
.btn-modern {
    border-radius: var(--border-radius);
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-modern-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-modern-success {
    background: var(--success-gradient);
    color: white;
}

.btn-modern-info {
    background: var(--info-gradient);
    color: white;
}

.btn-modern-warning {
    background: var(--warning-gradient);
    color: white;
}

.btn-modern-danger {
    background: var(--danger-gradient);
    color: white;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* Slide animations */
.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
 
 / *   E n h a n c e d   A d m i n   F o r m s   * / 
 . a d m i n - f o r m   . f o r m - c o n t r o l - l g   { 
         b o r d e r - r a d i u s :   1 2 p x ; 
         b o r d e r :   2 p x   s o l i d   # e 9 e c e f ; 
         t r a n s i t i o n :   a l l   0 . 3 s   c u b i c - b e z i e r ( 0 . 4 ,   0 . 0 ,   0 . 2 ,   1 ) ; 
         f o n t - s i z e :   1 r e m ; 
         p a d d i n g :   0 . 8 7 5 r e m   1 . 2 5 r e m ; 
 } 
 
 . a d m i n - f o r m   . f o r m - c o n t r o l - l g : f o c u s   { 
         b o r d e r - c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ; 
         b o x - s h a d o w :   0   0   0   0 . 2 5 r e m   r g b a ( 7 9 ,   7 0 ,   2 2 9 ,   0 . 1 5 ) ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; 
 } 
 
 . a d m i n - f o r m   . f o r m - l a b e l   { 
         c o l o r :   # 3 7 4 1 5 1 ; 
         f o n t - w e i g h t :   6 0 0 ; 
         m a r g i n - b o t t o m :   0 . 7 5 r e m ; 
         f o n t - s i z e :   0 . 9 r e m ; 
         t e x t - t r a n s f o r m :   u p p e r c a s e ; 
         l e t t e r - s p a c i n g :   0 . 0 5 e m ; 
 } 
 
 / *   G l o b a l   a d m i n   f o r m   s t y l e s   * / 
 . f o r m - c o n t r o l - l g   { 
         b o r d e r - r a d i u s :   1 2 p x   ! i m p o r t a n t ; 
         b o r d e r :   2 p x   s o l i d   # e 9 e c e f   ! i m p o r t a n t ; 
         t r a n s i t i o n :   a l l   0 . 3 s   c u b i c - b e z i e r ( 0 . 4 ,   0 . 0 ,   0 . 2 ,   1 )   ! i m p o r t a n t ; 
 } 
 
 . f o r m - c o n t r o l - l g : f o c u s   { 
         b o r d e r - c o l o r :   v a r ( - - p r i m a r y - c o l o r )   ! i m p o r t a n t ; 
         b o x - s h a d o w :   0   0   0   0 . 2 5 r e m   r g b a ( 7 9 ,   7 0 ,   2 2 9 ,   0 . 1 5 )   ! i m p o r t a n t ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x )   ! i m p o r t a n t ; 
 } 
 
 