/* ============================================================================
   ZERAVA CRM — base.css
   Variables, reset, fonts, typography
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Syne:wght@500;600;700;800&display=swap');

:root {
  /* Colors */
  --navy:   #060f1e;
  --navy2:  #0d1a2e;
  --navy3:  #162035;
  --blue:   #2eaae2;
  --blue2:  #1d8fc7;
  --green:  #00b894;
  --orange: #f97316;
  --red:    #ef4444;
  --yellow: #eab308;
  --purple: #7c3aed;
  --white:  #f0f4f8;
  --muted:  #4a6280;
  --border: #1a2d45;

  /* Type */
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: 'Syne', system-ui, -apple-system, Segoe UI, sans-serif;

  /* Spacing */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.5);

  /* Layout */
  --sidebar-w: 240px;
  --header-h: 56px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s3);
  color: var(--white);
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }

p { margin: 0 0 var(--s3); color: var(--white); }
small { color: var(--muted); }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue2); }

button { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--white);
}

::selection { background: var(--blue); color: var(--navy); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* Utility */
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }
.row { display: flex; align-items: center; gap: var(--s3); }
.col { display: flex; flex-direction: column; gap: var(--s3); }
.spacer { flex: 1; }
.hidden { display: none !important; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
