/* ============================================================
   SECW Portal — Design Tokens & Base
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  /* Brand */
  --sw-blue:        #0066CC;
  --sw-blue-dark:   #004A99;
  --sw-blue-deep:   #003070;
  --sw-blue-light:  #E6F1FB;
  --sw-blue-mid:    #B5D4F4;
  --sw-accent:      #00AAFF;
  --sw-accent-dim:  rgba(0,170,255,0.15);

  /* Dark surface (sidebar / painéis escuros) */
  --sw-dark:        #08111F;
  --sw-dark-2:      #0D1B30;
  --sw-dark-3:      #122040;
  --sw-dark-border: rgba(255,255,255,0.07);
  --sw-dark-text:   rgba(255,255,255,0.75);
  --sw-dark-muted:  rgba(255,255,255,0.30);
  --sw-dark-faint:  rgba(255,255,255,0.10);

  /* Light surface */
  --sw-bg:          #F0F4F8;
  --sw-surface:     #FFFFFF;
  --sw-surface-2:   #F7FAFD;
  --sw-border:      rgba(0,40,80,0.10);
  --sw-border-md:   rgba(0,40,80,0.16);
  --sw-text:        #0D1B30;
  --sw-text-2:      #4A6080;
  --sw-text-3:      #8AA0B8;

  /* Status */
  --sw-up:          #1a8a3a;
  --sw-up-bg:       #eaf3de;
  --sw-down:        #a32d2d;
  --sw-down-bg:     #fcebeb;
  --sw-warn:        #b85c00;
  --sw-warn-bg:     #faeeda;

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,40,80,0.08), 0 1px 2px rgba(0,40,80,0.04);
  --shadow-md:  0 4px 16px rgba(0,40,80,0.10), 0 1px 4px rgba(0,40,80,0.06);
  --shadow-lg:  0 8px 32px rgba(0,40,80,0.14), 0 2px 8px rgba(0,40,80,0.08);
  --shadow-blue: 0 4px 20px rgba(0,102,204,0.28);

  /* Transitions */
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --t-fast:  0.15s;
  --t-mid:   0.25s;
  --t-slow:  0.4s;

  /* Layout */
  --sidebar-w: 200px;
  --topbar-h:  52px;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--sw-bg);
  color: var(--sw-text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ?? Typography ?? */
.font-display { font-family: 'Syne', sans-serif; }

h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 600; line-height: 1.25; color: var(--sw-text); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 0.9375rem; }

p { color: var(--sw-text-2); }

/* ?? Scrollbar ?? */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sw-border-md); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--sw-text-3); }

/* ?? Focus ring ?? */
:focus-visible { outline: 2px solid var(--sw-accent); outline-offset: 2px; border-radius: var(--r-sm); }

/* ?? Utility ?? */
.mono { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 0.8125rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }