/*
 * Foundation design tokens + light, additive global polish.
 * Loaded once for every AdminLTE-based page (see vendor/adminlte/master.blade.php).
 *
 * Scope: tokens + cosmetic refinements only. Deliberately avoids layout or
 * spacing overrides (margins, row gaps, etc.) that could conflict with the
 * per-page utility classes already used across the app's 145+ views.
 */

:root {
    /* Brand / semantic colors (complements the existing sidebar-dark-blue skin) */
    --brand-primary: #1f6fb2;
    --brand-primary-dark: #185a8f;
    --brand-success: #2e7d32;
    --brand-warning: #b8860b;
    --brand-danger: #c62828;
    --brand-info: #0f7490;

    /* Neutrals */
    --neutral-100: #f1f3f5;
    --neutral-200: #e9ecef;
    --neutral-300: #dee2e6;
    --neutral-600: #6c757d;

    /* Spacing scale (available for targeted use in specific views) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;

    /* Radius + elevation */
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);

    /* Typography (loaded via Google Fonts link in vendor/adminlte/master.blade.php) */
    --font-heading: 'Sora', 'Poppins', sans-serif;
    --font-body: 'Inter', 'Poppins', sans-serif;
}

/* ---------- Typography: Inter for body copy, Sora for headings/titles ---------- */
body {
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.card-title,
.brand-text,
.main-sidebar .nav-header {
    font-family: var(--font-heading);
}

h1, h2, h3, h4, h5, h6,
.card-title {
    font-weight: 700;
}

/* ---------- Cards: consistent corner radius + soft elevation ---------- */
.card {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.card > .card-header:first-child {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

/* ---------- Buttons / badges: slightly softer corners ---------- */
.btn {
    border-radius: var(--radius-sm);
}

.badge {
    font-weight: 600;
}

/* ---------- Sidebar: section headers + collapse affordance ---------- */
.main-sidebar .nav-header {
    letter-spacing: .04em;
    padding-top: var(--space-4);
    padding-bottom: var(--space-1);
    opacity: .8;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-sidebar .nav-header:hover {
    opacity: 1;
}

.main-sidebar .nav-header .sidebar-section-caret {
    font-size: .65rem;
    transition: transform .15s ease;
    opacity: .7;
}

.main-sidebar .nav-header.section-collapsed .sidebar-section-caret {
    transform: rotate(-90deg);
}

.main-sidebar .nav-sidebar .nav-link {
    border-radius: var(--radius-sm);
}

.main-sidebar .nav-sidebar .nav-link.active {
    font-weight: 600;
}

/* ---------- Dashboard helper (scoped class, not a global selector) ---------- */
.chart-empty-state {
    font-size: .9rem;
}
