/* ========================================
   Admin Dashboard - Main Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Color Palette - Yellow Theme */
    --admin-primary: #fbbf24;
    --admin-primary-hover: #f59e0b;
    --admin-primary-light: #fef3c7;
    --admin-primary-dark: #d97706;
    
    --admin-secondary: #f59e0b;
    --admin-accent: #fde68a;
    
    /* Dark Colors */
    --admin-dark: #1f2937;
    --admin-dark-lighter: #374151;
    --admin-dark-darker: #111827;
    
    /* Text Colors */
    --text-dark: #111827;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --bg-gray-200: #e5e7eb;
    
    /* Status Colors */
    --status-success: #10b981;
    --status-success-light: #d1fae5;
    --status-warning: #f59e0b;
    --status-warning-light: #fef3c7;
    --status-danger: #ef4444;
    --status-danger-light: #fee2e2;
    --status-info: #3b82f6;
    --status-info-light: #dbeafe;
    
    /* Border & Shadow */
    --border-color: #e5e7eb;
    --border-color-light: #f3f4f6;
    --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);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    
    /* Typography */
    --font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-gray-50) 0%, var(--bg-white) 100%);
}

.main-header {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-secondary) 100%);
    padding: 32px 48px;
    border-bottom: 3px solid var(--admin-primary-dark);
    box-shadow: var(--shadow-md);
}

.main-header h2 {
    margin: 0 0 4px 0;
    font-size: 28px;
    font-weight: var(--font-weight-extrabold);
    color: var(--text-dark);
}

.main-header p {
    margin: 0;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-medium);
}

.content-area {
    padding: 32px 48px;
    max-width: 1600px;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 20px;
    color: var(--text-medium);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--admin-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--text-medium);
}

.empty-state p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

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

.text-right {
    text-align: right;
}

.text-semibold {
    font-weight: var(--font-weight-semibold);
}

.text-bold {
    font-weight: var(--font-weight-bold);
}

.text-extrabold {
    font-weight: var(--font-weight-extrabold);
}

.text-primary {
    color: var(--admin-primary);
}

.text-success {
    color: var(--status-success);
}

.text-danger {
    color: var(--status-danger);
}

.text-muted {
    color: var(--text-light);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
    }
    
    .content-area {
        padding: 24px;
    }
    
    .main-header {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .main-header h2 {
        font-size: 24px;
    }
    
    .content-area {
        padding: 16px;
    }
}
