/* ============================================================
   base.css — root variables, body, typography, helpers
   White + green theme (Hyperliquid-style)
   ============================================================ */

:root {
    /* Backgrounds */
    --bg-primary:    #ffffff;
    --bg-secondary:  #f0faf5;   /* very light green tint */
    --bg-tertiary:   #e6f7ee;   /* slightly stronger green tint */

    /* Text */
    --text-primary:    #0d1b1e;
    --text-secondary:  #4a5b5e;
    --text-muted:      #8aa0a4;

    /* Borders */
    --border:         #d8e8df;
    --border-strong:  #a8c8b5;

    /* Brand green */
    --green:        #00d384;    /* primary accent — Hyperliquid green */
    --green-dark:   #00875a;   /* darker, for text on white / button hover */
    --green-bg:     rgba(0, 211, 132, 0.12);
    --green-bg-2:   rgba(0, 135, 90, 0.08);

    /* Semantic */
    --red:      #e5394c;
    --red-bg:   rgba(229, 57, 76, 0.10);
    --yellow:   #d4a017;
    --yellow-bg: rgba(212, 160, 23, 0.14);

    /* Shadows */
    --shadow:        0 1px 4px rgba(13, 27, 30, 0.06), 0 2px 8px rgba(13, 27, 30, 0.04);
    --shadow-strong: 0 2px 10px rgba(0, 135, 90, 0.08), 0 4px 16px rgba(13, 27, 30, 0.05);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

/* ============================================================
   Typography helpers
   ============================================================ */
.text-small { font-size: 0.78rem; }
.text-muted-trading { color: var(--text-muted) !important; }
.text-secondary-trading { color: var(--text-secondary) !important; }
.text-mono { font-family: "Consolas", "Courier New", monospace; }

.text-success { color: var(--green-dark) !important; }
.text-danger  { color: var(--red) !important; }

/* ============================================================
   Error icon
   ============================================================ */
.error-icon { font-size: 3rem; color: var(--red); }
