/* =============================================================================
   public/css/themes/default.css — ParkLedger default theme
   Version  : v0.1.10.0135 Beta
   Date     : 2026-10-25 00:15
   Developed by Tarras

   0135: --color-alt-1…5 — star colours for "at least one of these" field groups
         (blue, green, purple, orange, teal); same in light and dark.

   Feel: Professional enforcement tool. Dark navy primary on clean white.
         Authoritative but not aggressive. Rounded cards with subtle shadows.
   Load order: this file FIRST, then main.css and layout.css.
   ============================================================================= */

:root {
    --color-scheme: light;

    /* 0135: either/or field groups (form stars) */
    --color-alt-1: #3b82f6;
    --color-alt-2: #22c55e;
    --color-alt-3: #a855f7;
    --color-alt-4: #f97316;
    --color-alt-5: #14b8a6;

    /* === SPACING === */
    --font-size-base:  16px;
    --container-max:   1200px;
    --header-height:   64px;
    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
    --sp-12: 48px; --sp-16: 64px;

    /* === COLOURS — Navy enforcement palette === */
    --color-primary:        #1d4ed8;    /* Strong enforcement blue */
    --color-primary-hover:  #1e40af;
    --color-primary-light:  #eff6ff;
    --color-on-primary:     #ffffff;

    --color-bg:             #ffffff;
    --color-bg-secondary:   #f8fafc;
    --color-surface:        #ffffff;
    --color-surface-raised: #f1f5f9;
    --color-border:         #e2e8f0;

    --color-text:           #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted:     #94a3b8;
    --color-heading:        #0f172a;
    --color-label:          #334155;
    --color-link:           #1d4ed8;
    --color-link-hover:     #1e40af;
    --color-brand-text:     #0f172a;
    --color-focus:          #1d4ed8;

    /* Semantic colours */
    --color-success:        #16a34a;
    --color-success-bg:     #f0fdf4;
    --color-success-text:   #166534;
    --color-success-border: #bbf7d0;

    --color-warning:        #d97706;
    --color-warning-bg:     #fffbeb;
    --color-warning-text:   #92400e;
    --color-warning-border: #fde68a;

    --color-danger:         #dc2626;
    --color-danger-hover:   #b91c1c;
    --color-danger-bg:      #fef2f2;
    --color-danger-text:    #991b1b;
    --color-danger-border:  #fecaca;

    --color-info:           #1d4ed8;
    --color-info-bg:        #eff6ff;
    --color-info-text:      #1e40af;
    --color-info-border:    #bfdbfe;

    /* Component colours */
    --color-header-bg:        #ffffff;
    --color-footer-bg:        #f8fafc;
    --color-card-bg:          #ffffff;
    --color-sidebar-bg:       #0f172a;    /* Dark sidebar for enforcement feel */
    --color-sidebar-text:     #cbd5e1;
    --color-sidebar-hover-bg: rgba(255,255,255,.08);
    --color-sidebar-active-bg: rgba(29,78,216,.25);
    --color-sidebar-active-text: #93c5fd;
    --color-primary-subtle:   rgba(29,78,216,.08);
    --sidebar-shadow:         4px 0 24px rgba(0,0,0,.15);
    --color-input-bg:         #ffffff;
    --color-input-bg-focus:   #ffffff;
    --color-input-border:     #cbd5e1;
    --color-nav-text:         #475569;
    --color-nav-hover-bg:     #f1f5f9;
    --color-nav-hover-text:   #0f172a;
    --color-nav-active-bg:    #eff6ff;
    --color-nav-active-text:  #1d4ed8;
    --color-table-header-bg:  #f8fafc;
    --color-table-row-hover:  #f8fafc;

    /* === TYPOGRAPHY === */
    --font-body:    "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-heading: "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono:    "Cascadia Code", "Fira Code", Consolas, monospace;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-body: 1rem;
    --text-lg:   1.125rem;
    --text-h1:   1.875rem;
    --text-h2:   1.375rem;
    --text-h3:   1.125rem;
    --text-h4:   1rem;
    --text-nav:  0.875rem;
    --text-btn:  0.9rem;
    --text-input: 0.95rem;
    --text-brand: 1.1rem;

    --font-weight-body:    400;
    --font-weight-bold:    600;
    --font-weight-heading: 700;
    --font-weight-nav:     500;
    --font-weight-btn:     500;
    --font-weight-label:   500;

    --line-height-body:    1.6;
    --line-height-heading: 1.25;
    --letter-spacing-heading: -0.01em;
    --letter-spacing-body:    0;
    --letter-spacing-nav:     0;
    --letter-spacing-brand:   -0.01em;

    --heading-transform: none;
    --link-decoration:       none;
    --link-decoration-hover: underline;
    --heading-mb-h1: 0.4rem;
    --heading-mb-h2: 0.35rem;
    --heading-mb-h3: 0.25rem;

    /* === BORDERS & RADIUS === */
    --radius-xs:   2px;
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-full: 9999px;

    --card-border:        1px solid #e2e8f0;
    --card-radius:        12px;
    --card-padding:       24px;
    --card-padding-lg:    40px;
    --input-border-width: 1px;
    --input-radius:       8px;
    --input-padding:      10px 14px;
    --btn-radius:         8px;
    --btn-border-width:   1px;
    --btn-padding:        10px 20px;
    --btn-padding-sm:     6px 14px;
    --btn-padding-lg:     13px 28px;
    --nav-link-radius:    8px;
    --nav-link-padding:   8px 14px;
    --badge-padding:      3px 10px;
    --badge-radius:       999px;
    --table-border:       1px solid #e2e8f0;
    --table-radius:       12px;
    --table-cell-padding: 11px 16px;
    --table-header-border: 1px solid #e2e8f0;
    --table-row-border:   1px solid #f1f5f9;
    --modal-border:       1px solid #e2e8f0;
    --modal-radius:       16px;
    --modal-max-width:    480px;
    --modal-padding:      36px 32px;
    --header-border:      1px solid #e2e8f0;
    --footer-border:      1px solid #e2e8f0;
    --brand-mark-size:    30px;
    --brand-mark-radius:  8px;

    /* === SHADOWS === */
    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:  0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);

    --card-shadow:        0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --card-shadow-hover:  0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.04);
    --card-hover-lift:    translateY(-2px);
    --header-shadow:      0 1px 3px rgba(0,0,0,.06);
    --modal-shadow:       0 24px 64px rgba(0,0,0,.14);
    --modal-overlay-bg:   rgba(15,23,42,.5);
    --btn-primary-shadow:       0 1px 3px rgba(29,78,216,.25);
    --btn-primary-shadow-hover: 0 4px 12px rgba(29,78,216,.35);
    --btn-hover-lift:     translateY(-1px);

    /* === FOCUS === */
    --focus-ring:    0 0 0 3px rgba(29,78,216,.25);
    --focus-outline: 2px solid #1d4ed8;

    /* === TRANSITIONS === */
    --transition-speed:  160ms;
    --transition-easing: cubic-bezier(.4,0,.2,1);

    /* === PAGE LAYOUT === */
    --page-padding: 28px 32px;
}

/* Dark mode — controlled by ParkLedger theme toggle, not OS */
[data-theme="dark"] {
    --color-scheme: dark;
    --color-primary:        #60a5fa;
    --color-primary-hover:  #93c5fd;
    --color-primary-light:  #1e3a5f;
    --color-on-primary:     #0f172a;
    --color-bg:             #0f172a;
    --color-bg-secondary:   #1e293b;
    --color-surface:        #1e293b;
    --color-surface-raised: #334155;
    --color-border:         #334155;
    --color-text:           #e2e8f0;
    --color-text-secondary: #94a3b8;
    --color-text-muted:     #64748b;
    --color-heading:        #f1f5f9;
    --color-label:          #cbd5e1;
    --color-link:           #60a5fa;
    --color-link-hover:     #93c5fd;
    --color-brand-text:     #f1f5f9;
    --color-success-bg:     #052e16;
    --color-success-text:   #4ade80;
    --color-success-border: #14532d;
    --color-warning-bg:     #1c1400;
    --color-warning-text:   #fcd34d;
    --color-warning-border: #78350f;
    --color-danger-bg:      #1c0a0a;
    --color-danger-text:    #f87171;
    --color-danger-border:  #7f1d1d;
    --color-info-bg:        #0c1a3a;
    --color-info-text:      #93c5fd;
    --color-info-border:    #1e3a5f;
    --color-header-bg:      #0f172a;
    --color-sidebar-bg:     #080f1e;
    --color-sidebar-text:   #94a3b8;
    --color-footer-bg:      #0f172a;
    --color-card-bg:        #1e293b;
    --color-input-bg:       #1e293b;
    --color-input-bg-focus: #0f172a;
    --color-input-border:   #475569;
    --color-primary-subtle: rgba(96,165,250,.12);
    --color-nav-hover-bg:   #334155;
    --color-nav-hover-text: #e2e8f0;
    --color-nav-active-bg:  #1e3a5f;
    --color-nav-active-text: #93c5fd;
    --color-table-header-bg: #1e293b;
    --color-table-row-hover: #334155;
    --card-border:          1px solid #334155;
    --header-border:        1px solid #334155;
    --footer-border:        1px solid #334155;
    --table-border:         1px solid #334155;
    --table-header-border:  1px solid #334155;
    --table-row-border:     1px solid #1e293b;
    --modal-border:         1px solid #334155;
    --modal-overlay-bg:     rgba(0,0,0,.65);
    --card-shadow:          0 1px 3px rgba(0,0,0,.4);
    --card-shadow-hover:    0 8px 24px rgba(0,0,0,.5);
    --focus-ring:           0 0 0 3px rgba(96,165,250,.35);
    --focus-outline:        2px solid #60a5fa;
    --btn-primary-shadow:       0 1px 3px rgba(96,165,250,.2);
    --btn-primary-shadow-hover: 0 4px 12px rgba(96,165,250,.3);
}
