/* ═══════════════════════════════════════════════════════════════
   TRYGER · DESIGN SYSTEM
   Tokens base: colores, tipografía, spacing, sombras, radii.
   Importar antes de components.css.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── COLORES DE MARCA ── */
  --tryger-navy: #0d1c2e;          /* Azul marino. Sidebar, headers, texto principal */
  --tryger-blue: #1565c0;          /* Azul primario. Botones, links, acentos */
  --tryger-cyan: #5DA3C3;          /* Azul cian. Gradientes, acentos secundarios */
  --tryger-green: #82d14b;         /* Verde signature. Success, live, accent */
  --tryger-green-dark: #4d8a29;    /* Verde oscuro para texto sobre fondos verde claro */
  --tryger-rose: #D4516D;          /* Rosa alerta. Errores, cancelaciones, badges críticos */
  --tryger-rose-dark: #b53a56;
  --tryger-amber: #f59e0b;         /* Ámbar. Estados intermedios (en revisión) */

  /* ── ESCALA DE GRISES (UI) ── */
  --bg-app: #f5f7fb;               /* Fondo general de la app */
  --bg-card: #ffffff;              /* Fondo de cards */
  --bg-soft: #fafbfd;              /* Hover de filas, fondos sutiles */
  --border-light: #eef1f7;         /* Bordes de cards y tablas */
  --border-mid: #e2e8f5;           /* Bordes de inputs */
  --border-strong: #d4dcf5;        /* Bordes hover */
  --text-primary: #0d1c2e;         /* Texto principal (mismo que navy) */
  --text-secondary: #5c6d85;       /* Texto secundario */
  --text-muted: #8899bb;           /* Texto deshabilitado / labels */
  --text-faint: #b8c4d8;           /* Texto muy sutil / placeholders */
  --text-fainter: #c0cad8;         /* Iconos deshabilitados */

  /* ── COLORES SOBRE FONDO OSCURO (sidebar) ── */
  --on-dark-primary: rgba(255,255,255,1);
  --on-dark-strong: rgba(255,255,255,.95);
  --on-dark-default: rgba(255,255,255,.62);
  --on-dark-muted: rgba(255,255,255,.45);
  --on-dark-faint: rgba(255,255,255,.32);
  --on-dark-fainter: rgba(255,255,255,.28);
  --on-dark-bg-hover: rgba(255,255,255,.05);
  --on-dark-bg-active: rgba(21,101,192,.22);
  --on-dark-card-bg: rgba(255,255,255,.04);
  --on-dark-card-border: rgba(255,255,255,.08);

  /* ── TIPOGRAFÍA ── */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --font-icons: 'Material Symbols Outlined';

  /* Tamaños (escala) */
  --fs-xs: 10px;
  --fs-sm: 11.5px;
  --fs-base: 13px;
  --fs-md: 14px;
  --fs-lg: 15px;
  --fs-xl: 17px;
  --fs-2xl: 20px;
  --fs-3xl: 24px;
  --fs-4xl: 28px;
  --fs-display: 38px;

  /* Pesos */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* ── SPACING ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* ── RADII ── */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 99px;

  /* ── SOMBRAS ── */
  --shadow-sm: 0 1px 2px rgba(13,28,46,.06);
  --shadow-md: 0 4px 12px rgba(13,28,46,.08);
  --shadow-lg: 0 10px 30px rgba(13,28,46,.12);
  --shadow-focus: 0 0 0 3px rgba(21,101,192,.1);

  /* ── LAYOUT ── */
  --sidebar-width: 248px;
  --topbar-height: 64px;

  /* ── TRANSICIONES ── */
  --t-fast: .12s;
  --t-base: .2s;
  --t-slow: .3s;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

img { max-width: 100%; display: block; }

/* Iconos Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* Texto monoespaciado para números */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Eyebrow text - labels pequeños en mayúsculas */
.eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
}

/* Scroll suave y delgado */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
