/*
 * ════════════════════════════════════════════════════════════════
 *  TeleWeCure Dashboard — Design Token File
 *  File:    tw-tokens.css
 *  Place:   public/css/tw-tokens.css
 *
 *  PURPOSE: Single source of truth for all design values.
 *           This file contains ONLY :root variables — no rules.
 *           Every other CSS file (tw-dashboard.css) must import
 *           or load this file first and reference only these tokens.
 *
 *  USAGE IN BLADE:  <link rel="stylesheet" href="{{ asset('css/tw-tokens.css') }}">
 *  USAGE IN HTML:   <link rel="stylesheet" href="/css/tw-tokens.css">
 *
 *  Last updated: 2026-02-28
 *  Verified against: user_stage2.html, user_stage3.html
 * ════════════════════════════════════════════════════════════════
 */

:root {

    /* ── Brand Colors ───────────────────────────────────────────
       Primary green and its variants used throughout the UI.
       NEVER hard-code #69a74e anywhere — use --green instead.
    ─────────────────────────────────────────────────────────── */
    --green:            #69a74e;   /* Primary brand color */
    --green-dark:       #4A7537;   /* Hover state, active state */
    --green-light:      #e8f4e2;   /* Backgrounds, done-state dots */
    --green-mist:       #f3f9f0;   /* Subtle hover backgrounds */

    /* ── Text Colors ────────────────────────────────────────────
       Three-tier text hierarchy for accessibility.
       --text meets WCAG AA on white backgrounds.
    ─────────────────────────────────────────────────────────── */
    --text:             #020101;   /* Primary text — headings, labels */
    --text-secondary:   #555e55;   /* Body text, descriptions */
    --text-muted:       #8a9688;   /* Captions, placeholders, section labels */

    /* ── Background Colors ──────────────────────────────────────*/
    --white:            #ffffff;
    --bg-page:          #f5f6f4;   /* Outer page background */
    --bg-sidebar:       #ffffff;   /* Sidebar background */

    /* ── Border ─────────────────────────────────────────────────*/
    --border:           #dde5da;   /* All card and component borders */

    /* ── Semantic State Colors ──────────────────────────────────
       Used for badges, alerts, and status indicators.
       Reference these instead of hard-coding hex values.
    ─────────────────────────────────────────────────────────── */
    --color-danger:          #e74c3c;   /* Error, destructive actions */
    --color-danger-bg:       #fef0f0;   /* Danger hover background */
    --color-warning:         #f0c040;   /* Warning dot glow */
    --color-warning-bg:      #fff3cd;   /* Warning badge background */
    --color-warning-border:  #ffeeba;   /* Warning badge border */
    --color-warning-text:    #856404;   /* Warning badge text */
    --color-success:         #22c55e;   /* Online pulse dot, success states */

    /* ── Shadows ────────────────────────────────────────────────
       Consistent elevation system. Use sm for cards, md for
       overlays and dropdowns, green variants for CTA buttons.
    ─────────────────────────────────────────────────────────── */
    --shadow-sm:        0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:        0 4px 20px rgba(0,0,0,0.10);
    --shadow-green:     0 4px 20px rgba(105,167,78,0.22);
    --shadow-green-lg:  0 8px 28px rgba(74,117,55,0.35);
    --shadow-dana-card: 0 8px 30px rgba(0,0,0,0.18);
    --shadow-dana-hover:0 12px 40px rgba(105,167,78,0.30);

    /* ── Border Radius ──────────────────────────────────────────
       Three-tier radius scale.
       sm = buttons/badges, md = cards, lg = large panels/modals.
    ─────────────────────────────────────────────────────────── */
    --radius-sm:        8px;
    --radius-md:        14px;
    --radius-lg:        20px;

    /* ── Typography ─────────────────────────────────────────────
       Bitter = display/headings (Bitter 600, 700)
       Manrope = body/UI text (Manrope 400, 500, 600, 700)
       Both loaded via Google Fonts in the <head>.
    ─────────────────────────────────────────────────────────── */
    --font-display:     'Bitter', Georgia, serif;
    --font-body:        'Manrope', system-ui, sans-serif;

    /* ── Layout Structure ───────────────────────────────────────
       Core layout dimensions used by navbar, sidebar, and main.
    ─────────────────────────────────────────────────────────── */
    --sidebar-w:        260px;     /* Sidebar width (desktop) */
    --navbar-h:         68px;      /* Top navbar height */

    /* ── Transitions ────────────────────────────────────────────
       --transition      : standard UI interactions (hover, focus)
       --transition-dana : Dana widget expand/collapse animation
    ─────────────────────────────────────────────────────────── */
    --transition:       0.25s ease;
    --transition-dana:  0.35s cubic-bezier(0.4,0,0.2,1);

    /*
     * ── Responsive Breakpoints (REFERENCE ONLY) ─────────────────
     *    CSS custom properties CANNOT be used inside @media rules.
     *    These values are documented here for reference only.
     *    Always use the raw px values in @media queries in
     *    tw-dashboard.css.
     *
     *    480px  → --bp-sm  : compact mobile (stack, reduce padding)
     *    768px  → --bp-md  : mobile (single column, hide labels)
     *    992px  → --bp-lg  : tablet (sidebar collapses to hamburger)
     *    1199px → --bp-xl  : small desktop (right column narrows)
     * ────────────────────────────────────────────────────────── */
	 
}
	 /* ── DARK MODE THEME ─────────────────────────────────────── */
html[data-theme="dark"] {
    --white:          #1e2420;
    --bg-page:        #141a11;
    --bg-sidebar:     #1a2016;
    --text:           #e8f4e2;
    --text-secondary: #a8bfa0;
    --text-muted:     #6a8060;
    --border:         #2d3d28;
    --green-mist:     #1a2416;
    --green-light:    #1f2e1a;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.30);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.40);
}
