/* ==========================================================================
   Facade Lighting Services ERP — Base: design tokens, reset, typography
   ========================================================================== */

:root {
  /* Brand — Facade Lighting Services: ink black + signature cyan, with the logo's colour spectrum as accent */
  --brand-900: #0b0b0c;
  --brand-800: #1c1d21;
  --brand-700: #0a6f9e;
  --brand-600: #1596cf;
  --brand-500: #17a8e3;
  --brand-100: #d7f0fa;
  --brand-50:  #eef9fd;
  --spectrum: linear-gradient(90deg, #e8262f 0%, #f6891f 16%, #fcd116 30%, #3cb44b 46%, #17a8e3 62%, #2e5cb8 76%, #7b3fa0 88%, #e0439a 100%);

  --gold-600: #b7830f;
  --gold-500: #d9a21b;
  --gold-100: #fdf3d8;
  --gold-50:  #fffaeb;

  /* Neutrals */
  --white: #ffffff;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --line: #e5e9f0;
  --line-strong: #d3d9e3;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;

  /* Semantic */
  --success: #15803d;
  --success-bg: #e8f7ee;
  --warning: #b45309;
  --warning-bg: #fff4e0;
  --danger: #c2261d;
  --danger-bg: #fdecea;
  --info: #0e7490;
  --info-bg: #e3f6fa;
  --violet: #6d28d9;
  --violet-bg: #f1ebff;
  --whatsapp: #1fa855;
  --whatsapp-bg: #e7f8ee;

  /* Radius, shadow, spacing */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 4px 12px rgba(15, 23, 42, .06), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, .12), 0 4px 10px rgba(15, 23, 42, .06);

  --sidebar-w: 256px;
  --topbar-h: 64px;

  --font: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 { margin: 0; color: var(--text); font-family: var(--head); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 22px; line-height: 1.25; }
h2 { font-size: 17px; line-height: 1.3; }
h3 { font-size: 15px; line-height: 1.35; }
h4 { font-size: 13.5px; }
p { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--brand-100); }

:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: #cfd6e1 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #cfd6e1; border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* Utilities */
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.strong { font-weight: 600; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-brand { color: var(--brand-600); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
