/*
 * Modern Admin Dashboard CSS
 * Updated with neutral sidebar theme and brand color palette
 * Optimized for WCAG AA accessibility compliance
 */

:root {
    /* Brand Color Palette */
    --primary-blue: #007bff;
    --primary-blue-dark: #0056b3;
    --primary-blue-light: #66b3ff;
    
    --success-green: #28a745;
    --success-green-dark: #1e7e34;
    --success-green-light: #71dd8a;
    
    --accent-orange: #ffc107;
    --accent-orange-dark: #e0a800;
    --accent-orange-light: #ffdb4d;
    
    --danger-red: #dc3545;
    --warning-yellow: #ffc107;
    --info-cyan: #F2203D;
    
    /* Neutral Sidebar Colors */
    --sidebar-bg-start: #374151;
    --sidebar-bg-end: #6b7280;
    --sidebar-text: #f9fafb;
    --sidebar-text-muted: #d1d5db;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-active: rgba(255, 255, 255, 0.2);
    
    /* Gray Scale */
    --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;
    
    /* Animation Timings */
    --transition-fast: 150ms;
    --transition-normal: 300ms;
    --transition-slow: 500ms;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Modern Sidebar Styling */
.modern-sidebar {
    background: linear-gradient(135deg, var(--sidebar-bg-start) 0%, var(--sidebar-bg-end) 100%) !important;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    border-right: 1px solid var(--gray-300);
}

.modern-sidebar .menu-link {
    color: var(--sidebar-text) !important;
    transition: all var(--transition-fast) ease;
    border-radius: 8px;
    margin: 2px 8px;
    padding: 12px 16px;
}

.modern-sidebar .menu-link:hover {
    background-color: var(--sidebar-hover) !important;
    color: var(--sidebar-text) !important;
    transform: translateX(2px);
}

.modern-sidebar .menu-item.active > .menu-link {
    background-color: var(--sidebar-active) !important;
    color: var(--sidebar-text) !important;
    box-shadow: var(--shadow-sm);
}

.modern-sidebar .menu-icon {
    color: var(--sidebar-text-muted);
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.modern-sidebar .menu-item.active .menu-icon {
    color: var(--sidebar-text);
}

/* Modern Header Styling */
.modern-header {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%) !important;
    border-radius: 16px;
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-lg);
}

/* Modern Card Styling */
.modern-card {
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast) ease;
    background: white;
}

.modern-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.modern-card--primary {
    border-left: 4px solid var(--primary-blue);
}

.modern-card--success {
    border-left: 4px solid var(--success-green);
}

.modern-card--warning {
    border-left: 4px solid var(--accent-orange);
}

.modern-card--danger {
    border-left: 4px solid var(--danger-red);
}

/* Modern Button Styling */
.btn-modern {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all var(--transition-fast) ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

.btn-modern.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-modern.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    color: white;
}

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

.btn-modern.btn-success:hover {
    background-color: var(--success-green-dark);
    color: white;
}

.btn-modern.btn-warning {
    background-color: var(--accent-orange);
    color: var(--gray-800);
}

.btn-modern.btn-warning:hover {
    background-color: var(--accent-orange-dark);
    color: var(--gray-800);
}

/* Stats Cards */
.stats-card-modern {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast) ease;
    position: relative;
    overflow: hidden;
}

.stats-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
}

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

.stats-card-modern--success::before {
    background: linear-gradient(90deg, var(--success-green), var(--success-green-light));
}

.stats-card-modern--warning::before {
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-orange-light));
}

.stats-card-modern--danger::before {
    background: linear-gradient(90deg, var(--danger-red), #ff6b7a);
}

.stats-icon-modern {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    color: white;
    box-shadow: var(--shadow-md);
}

.stats-icon-modern--primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.stats-icon-modern--success {
    background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-light) 100%);
}

.stats-icon-modern--warning {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
}

.stats-icon-modern--danger {
    background: linear-gradient(135deg, var(--danger-red) 0%, #ff6b7a 100%);
}

.stats-value-modern {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.stats-label-modern {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Actions Modal */
.quick-actions-modal .btn {
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all var(--transition-fast) ease;
    border: none;
    margin-bottom: 8px;
}

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

/* Floating Action Button */
.floating-btn-modern {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border: none;
    color: white;
    font-size: 20px;
    /* box-shadow: var(--shadow-lg); */
    transition: all var(--transition-fast) ease;
    cursor: pointer;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.floating-btn-modern:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Chart Cards */
.chart-card-modern {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.chart-title-modern {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
}

/* Table Styling */
.table-modern {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-modern thead {
    background-color: var(--gray-50);
}

.table-modern th {
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px;
}

.table-modern td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.table-modern tbody tr:hover {
    background-color: var(--gray-50);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-card-modern {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .chart-card-modern {
        padding: 16px;
    }
    
    .floating-btn-modern {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

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

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

.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

/* Form Controls */
.form-control-modern {
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    padding: 10px 16px;
    transition: all var(--transition-fast) ease;
}

.form-control-modern:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

/* Badge Styling */
.badge-modern {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-modern.badge-primary {
    background-color: var(--primary-blue);
    color: white;
}

.badge-modern.badge-success {
    background-color: var(--success-green);
    color: white;
}

.badge-modern.badge-warning {
    background-color: var(--accent-orange);
    color: var(--gray-800);
}

.badge-modern.badge-danger {
    background-color: var(--danger-red);
    color: white;
}
