/* ==========================================================
   BASE.CSS — Variáveis globais, reset e tipografia
   Sistema de Gestão de Transportes
   ========================================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Variáveis CSS ---- */
:root {
  /* Cores de fundo */
  --bg-base:      #0d0f17;
  --bg-surface:   #13161f;
  --bg-elevated:  #1a1d28;
  --bg-overlay:   #20243200;

  /* Bordas */
  --border:       #252836;
  --border-light: #2e3347;

  /* Texto */
  --text-primary:   #e6eaf4;
  --text-secondary: #8892a8;
  --text-muted:     #4e566a;

  /* Acento principal — âmbar */
  --accent:         #f5a623;
  --accent-dim:     rgba(245, 166, 35, 0.12);
  --accent-hover:   #fbb740;

  /* Status */
  --success:        #22c55e;
  --success-dim:    rgba(34, 197, 94, 0.12);
  --danger:         #ef4444;
  --danger-dim:     rgba(239, 68, 68, 0.12);
  --warning:        #f59e0b;
  --warning-dim:    rgba(245, 158, 11, 0.12);
  --info:           #3b82f6;
  --info-dim:       rgba(59, 130, 246, 0.12);

  /* Tipografia */
  --font-ui:    'Outfit', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  /* Espaçamentos */
  --sidebar-w: 240px;
  --header-h:  56px;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.6);

  /* Animações */
  --transition: 0.18s ease;
}

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

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

body {
  font-family: var(--font-ui);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button { font-family: var(--font-ui); cursor: pointer; border: none; background: none; }

input, select, textarea {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

select option { background: var(--bg-elevated); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---- Utilitários de texto ---- */
.text-mono  { font-family: var(--font-mono); }
.text-muted { color: var(--text-secondary); }
.text-sm    { font-size: 0.8rem; }
.text-xs    { font-size: 0.72rem; }
.text-lg    { font-size: 1.1rem; }
.text-xl    { font-size: 1.35rem; }
.text-2xl   { font-size: 1.6rem; }
.fw-500     { font-weight: 500; }
.fw-600     { font-weight: 600; }

/* ---- Utilitários de layout ---- */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-gap-8  { gap: 8px; }
.flex-gap-12 { gap: 12px; }
.flex-gap-16 { gap: 16px; }
.grid-2      { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3      { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4      { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge-success { background: var(--success-dim); color: var(--success); }
.badge-danger  { background: var(--danger-dim);  color: var(--danger); }
.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-info    { background: var(--info-dim);    color: var(--info); }
.badge-muted   { background: rgba(78,86,106,.2); color: var(--text-secondary); }

.badge-resumo    { background: var(--info-dim);    color: var(--info); }
.badge-completa { background: var(--success-dim); color: var(--success); }
