:root {
    /* Color Palette - Premium Modern */
    --primary-color: #4F46E5;
    /* Indigo 600 */
    --primary-light: #818CF8;
    --primary-dark: #3730A3;

    --secondary-color: #F8FAFC;
    /* Slate 50 */
    --surface-color: #FFFFFF;

    --text-main: #1E293B;
    /* Slate 800 */
    --text-muted: #64748B;
    /* Slate 500 */

    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --backdrop-blur: blur(12px);

    /* Spacing & Components */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --header-height: 70px;
    --sidebar-width: 260px;
}

body {
    background-color: #F1F5F9;
    /* Slate 100 */
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* ---------------------------------
   BUTTONS
--------------------------------- */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #CBD5E1;
    color: var(--text-main);
}

.btn-outline:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ---------------------------------
   LAYOUT: Dashboard Grid
--------------------------------- */
.dashboard-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
        /* Add toggler logic in JS */
    }
}

/* ---------------------------------
   SIDEBAR
--------------------------------- */
.sidebar {
    background: var(--surface-color);
    border-right: 1px solid #E2E8F0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    width: var(--sidebar-width);
    z-index: 100;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link:hover,
.nav-link.active {
    background: #EEF2FF;
    /* Indigo 50 */
    color: var(--primary-color);
}

.sidebar-footer {
    border-top: 1px solid #E2E8F0;
    padding-top: 20px;
}

/* ---------------------------------
   MAIN CONTENT
--------------------------------- */
.main-content {
    grid-column: 2;
    padding: 30px 40px;
    margin-left: var(--sidebar-width);
    /* If sidebar is fixed */
}

@media (max-width: 900px) {
    .main-content {
        grid-column: 1;
        margin-left: 0;
        padding: 20px;
    }
}

/* ---------------------------------
   CARDS & CONTAINERS
--------------------------------- */
.card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #F1F5F9;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    padding: 30px;
}

/* ---------------------------------
   FORMS
--------------------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid #CBD5E1;
    font-size: 1rem;
    transition: all 0.2s;
    background: #F8FAFC;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ---------------------------------
   UTILITIES
--------------------------------- */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--text-muted);
}

.badge {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

/* Auth Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    padding: 20px;
}