/* Securis360 — Design System Tokens & Component Classes (Light Theme matching securis360.com) */
@import url('https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,300..900;1,300..900&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-text: #0f172a;
  --color-accent: #15803d; /* Securis360 brand green */
  --color-accent-2: #16a34a;
  --color-primary: #15803d;
  --color-primary-dark: #0f382c;
  --color-divider: #e2e8f0;

  /* Tonal ramps */
  --color-neutral-100: #0f172a;
  --color-neutral-200: #1e293b;
  --color-neutral-300: #334155;
  --color-neutral-400: #64748b;
  --color-neutral-500: #94a3b8;
  --color-neutral-600: #cbd5e1;
  --color-neutral-700: #e2e8f0;
  --color-neutral-800: #f1f5f9;
  --color-neutral-900: #e2e8f0;

  --color-accent-100: #052e16;
  --color-accent-200: #14532d;
  --color-accent-300: #166534;
  --color-accent-400: #15803d;
  --color-accent-500: #16a34a;
  --color-accent-600: #22c55e;
  --color-accent-700: #86efac;
  --color-accent-800: #dcfce7;
  --color-accent-900: #f0fdf4;

  --color-accent-2-100: #064e3b;
  --color-accent-2-200: #047857;
  --color-accent-2-300: #059669;
  --color-accent-2-400: #10b981;
  --color-accent-2-500: #34d399;
  --color-accent-2-600: #6ee7b7;
  --color-accent-2-700: #a7f3d0;
  --color-accent-2-800: #d1fae5;
  --color-accent-2-900: #ecfdf5;

  /* Section backgrounds */
  --color-section: #ecfdf5;
  --color-section-glow: #d1fae5;
  --color-section-ghost: #a7f3d0;

  --font-heading: 'Exo', system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: 'Lato', system-ui, sans-serif;

  --space-1: 2.8px;
  --space-2: 5.6px;
  --space-3: 8.4px;
  --space-4: 11.2px;
  --space-6: 16.8px;
  --space-8: 22.4px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* Elevation (Clean subtle light-theme shadows) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 0 0 1px #e2e8f0;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px #e2e8f0;
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04), 0 0 0 1px #cbd5e1;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); color: #0f172a; }

.lighten{mix-blend-mode:multiply;background-color:transparent}

/* ══════════════════════════════════════════════════════════════════════════
   Components — Built with Light Theme Tokens
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
  color: #0f172a;
}
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 19px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-2); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: #64748b;
}
.text-muted { color: #64748b; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: #bbf7d0; color: #0f172a; }

/* — rules — */
.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: linear-gradient(to right,
    transparent, var(--color-divider) 48px,
    var(--color-divider) calc(100% - 48px), transparent);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 14px; line-height: 1.2; color: #1e293b;
  background: #ffffff; border: 1px solid #cbd5e1;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  color: #ffffff;
  background: #15803d;
  border-color: #15803d;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.btn-primary:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}
.btn-primary:active {
  background: #14532d;
  border-color: #14532d;
  color: #ffffff;
}
.btn-secondary {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #1e293b;
}
.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.btn-secondary:active {
  background: #e2e8f0;
}
.btn-ghost {
  color: #15803d;
  background: transparent;
  border-color: transparent;
  padding-inline: var(--space-1);
}
.btn-ghost:hover { background: #f0fdf4; }
.btn-ghost:active { background: #dcfce7; }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* — forms — */
.field > label {
  display: block; font-size: 12px; font-weight: 500; margin-bottom: 5px;
  color: #334155;
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: #0f172a; caret-color: #15803d;
  background: #ffffff;
  border: 1px solid #cbd5e1; border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:hover { border-color: #94a3b8; }
.input:focus, .input:focus-visible {
  border-color: #15803d;
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: #1e293b; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid #cbd5e1; background: #ffffff;
}
.radio:hover .dot { border-color: #15803d; }
.radio input:checked + .dot {
  border-color: #15803d; background: #15803d;
  box-shadow: inset 0 0 0 3.5px #ffffff;
}
.radio input:focus-visible + .dot { outline: 2px solid #15803d; outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid #cbd5e1; border-radius: var(--radius-md);
  background: #f8fafc;
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer; color: #475569;
}
.seg-opt + .seg-opt { border-left: 1px solid #cbd5e1; }
.seg-opt:has(input:checked) {
  color: #15803d; font-weight: 600;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #15803d;
}
.seg-opt:not(:has(input:checked)):hover { background: #f1f5f9; color: #0f172a; }
.seg-opt:has(input:focus-visible) { outline: 2px solid #15803d; outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
}
.card-kicker { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #15803d; }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2; color: #0f172a;
}
.card-body { margin: 0; font-size: 13px; color: #475569; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: #64748b;
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  font-weight: 600; letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.tag-accent-2 { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.tag-neutral { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.tag-outline { border: 1px solid #15803d; color: #15803d; background: #f0fdf4; }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: none;
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto; color: #0f172a;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); font-weight: 600; }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #64748b; font-weight: 600;
  padding: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
  color: #1e293b;
}
.table thead tr {
  background: #f8fafc;
}
.table tbody tr {
  background: #ffffff;
}
.table tbody tr:hover {
  background: #f8fafc;
}

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: #ffffff; box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-divider);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px; color: #0f172a;
}
.dialog-body { font-size: 14px; color: #475569; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }
