/* ============================================================
   SIGE — Base: variáveis, reset e tipografia
   ============================================================ */

/* ─── Variáveis globais ─────────────────────────────────────── */
:root {
  /* Cores principais */
  --blue-900:   #042C53;
  --blue-800:   #0C447C;
  --blue-700:   #185FA5;
  --blue-600:   #378ADD;
  --blue-300:   #85B7EB;
  --blue-100:   #B5D4F4;
  --blue-50:    #E6F1FB;

  /* Sidebar */
  --sidebar-bg:         #101b2e;
  --sidebar-hover:      #162237;
  --sidebar-active:     #1a2e47;
  --sidebar-border:     #1e2f47;
  --sidebar-accent:     #378ADD;
  --sidebar-text:       #8aaecf;
  --sidebar-text-light: #E6F1FB;

  /* Conteúdo */
  --page-bg:      #f0f2f5;
  --surface:      #ffffff;
  --border:       #d0d5dd;
  --border-light: #eaecf0;

  /* Tipografia */
  --text-primary:   #374151;
  --text-secondary: #6b7280;
  --text-muted:     #9ca3af;
  --text-white:     #ffffff;

  /* Badges de status */
  --badge-patio-bg:            #dbeafe;
  --badge-patio-text:          #1e40af;
  --badge-patio-bg-table:      #FFFCCC;
  --badge-patio-text-table:    #756F00;
  --badge-aguard-bg:           #fef3c7;
  --badge-aguard-text:         #92400e;
  --badge-final-bg:            #d1fae5;
  --badge-final-text:          #065f46;
  --badge-receb-bg:            #ede9fe;
  --badge-receb-text:          #4c1d95;
  --badge-env-bg:              #ede9fe;
  --badge-env-text:            #4c1d95;

  /* Feedback */
  --color-success: #16a34a;
  --color-danger:  #dc2626;
  --color-warning: #d97706;
  --color-info:    #185FA5;

  /* Espaçamentos */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-size: 14px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: 13px;
}

/* ─── Utilitários de texto ───────────────────────────────────── */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-white     { color: var(--text-white); }
.text-danger    { color: var(--color-danger); }
.text-success   { color: var(--color-success); }

.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.text-sm  { font-size: 12px; }
.text-xs  { font-size: 11px; }
.text-base{ font-size: 13px; }
.text-lg  { font-size: 16px; }
.text-xl  { font-size: 18px; }

/* ─── Utilitários de layout ──────────────────────────────────── */
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.w-100 { width: 100%; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ─── Scrollbar personalizada ────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}