/* =============================================
   NR-1 SaaS â€” Design System
   VariÃ¡veis CSS para suporte ao white-label
   ============================================= */

:root {
  --cor-primaria: #2563EB;
  --cor-secundaria: #1E40AF;
  --cor-primaria-hover: var(--cor-secundaria);
  --cor-primaria-light: #EFF6FF;
  --cor-acento: #F59E0B;
  --cor-sucesso: #10B981;
  --cor-perigo: #EF4444;
  --cor-aviso: #F59E0B;
  --cor-info: #3B82F6;

  --cor-texto: #1F2937;
  --cor-texto-suave: #6B7280;
  --cor-texto-muted: #9CA3AF;
  --cor-fundo: #F9FAFB;
  --cor-fundo-card: #FFFFFF;
  --cor-borda: #E5E7EB;
  --cor-borda-focus: #93C5FD;

  --sombra-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --sombra-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.06);
  --sombra-lg: 0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.05);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transicao: 0.2s ease;
}

/* Reset mÃ­nimo */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--cor-texto);
  background: var(--cor-fundo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cor-primaria); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =============================================
   UTILITÃRIOS
   ============================================= */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-muted { color: var(--cor-texto-suave); }
.text-danger { color: var(--cor-perigo); }
.text-success { color: var(--cor-sucesso); }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.grid { display: grid; }

/* =============================================
   COMPONENTES â€” BOTÃ•ES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transicao);
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  background: var(--cor-primaria);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--cor-primaria-hover); }
.btn-primary-gradient {
  background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
  color: #fff;
}
.btn-primary-gradient:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--cor-secundaria) 0%, var(--cor-primaria) 100%);
}
.btn-secondary {
  background: var(--cor-fundo);
  color: var(--cor-texto);
  border: 1px solid var(--cor-borda);
}
.btn-secondary:hover:not(:disabled) { background: #F3F4F6; }
.btn-danger {
  background: var(--cor-perigo);
  color: #fff;
}
.btn-success {
  background: var(--cor-sucesso);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--cor-primaria);
  border: 1px solid var(--cor-primaria);
}
.btn-ghost:hover:not(:disabled) { background: var(--cor-primaria-light); }
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.825rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* =============================================
   COMPONENTES â€” CARDS
   ============================================= */
.card {
  background: var(--cor-fundo-card);
  border: 1px solid var(--cor-borda);
  border-radius: var(--radius-md);
  box-shadow: var(--sombra-sm);
}
.card-body { padding: 1.5rem; }
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--cor-borda);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cor-texto);
}

/* Stat cards (dashboard) */
.stat-card {
  background: var(--cor-fundo-card);
  border: 1px solid var(--cor-borda);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--sombra-sm);
  transition: box-shadow var(--transicao);
}
.stat-card:hover { box-shadow: var(--sombra-md); }
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat-icon.azul { background: #EFF6FF; color: var(--cor-primaria); }
.stat-icon.amarelo { background: #FFFBEB; color: var(--cor-aviso); }
.stat-icon.verde { background: #ECFDF5; color: var(--cor-sucesso); }
.stat-icon.vermelho { background: #FEF2F2; color: var(--cor-perigo); }
.stat-valor {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--cor-texto);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--cor-texto-suave);
  margin-top: 0.2rem;
}

/* =============================================
   COMPONENTES â€” FORMULÃRIOS
   ============================================= */
.form-group { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.5rem; }
.form-group:last-child { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 0.75rem; }
.form-section { margin-bottom: 0.875rem; }
.form-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cor-texto-suave);
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--cor-borda);
}
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cor-texto);
}
.form-label .req { color: var(--cor-perigo); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 0.4rem 0.7rem;
  border: 1.5px solid var(--cor-borda);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.855rem;
  color: var(--cor-texto);
  background: #fff;
  transition: border-color var(--transicao), box-shadow var(--transicao);
  outline: none;
}
.form-control:focus {
  border-color: var(--cor-primaria);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-control::placeholder { color: var(--cor-texto-muted); }
.form-control.is-invalid { border-color: var(--cor-perigo); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 0.74rem; color: var(--cor-texto-suave); margin-top: 0.125rem; }
.form-error { font-size: 0.74rem; color: var(--cor-perigo); }

/* =============================================
   COMPONENTE â€” TOGGLE SWITCH
============================================= */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #CBD5E1; border-radius: 24px; transition: 0.2s; }
.toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s; }
.toggle-switch input:checked + .toggle-slider { background: var(--cor-primaria); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

/* =============================================
   COMPONENTES â€” BADGES
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-nova { background: #EFF6FF; color: #1D4ED8; }
.badge-em_triagem { background: #FFFBEB; color: #B45309; }
.badge-em_investigacao { background: #FFF7ED; color: #C2410C; }
.badge-aguardando_evidencias { background: #F5F3FF; color: #6D28D9; }
.badge-resolvida { background: #ECFDF5; color: #065F46; }
.badge-arquivada { background: #F3F4F6; color: #374151; }
.badge-improcedente { background: #F3F4F6; color: #6B7280; }

.badge-baixo { background: #ECFDF5; color: #065F46; }
.badge-medio { background: #FFFBEB; color: #B45309; }
.badge-alto { background: #FEF3C7; color: #92400E; }
.badge-critico { background: #FEF2F2; color: #991B1B; }

/* =============================================
   LAYOUT â€” SIDEBAR
   ============================================= */
.app-layout {
  min-height: 100vh;
}
.sidebar {
  background: var(--cor-texto);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 230px;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform var(--transicao);
}
.sidebar-logo {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.sidebar-logo .logo-nome {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.sidebar-logo .logo-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.sidebar-nav { flex: 1; padding: 1rem 0; }
.nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  padding: 0.75rem 1.25rem 0.25rem;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  transition: all var(--transicao);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--cor-primaria); color: #fff; }
.nav-item .nav-icon { width: 20px; text-align: center; font-size: 1rem; }
.nav-badge {
  margin-left: auto;
  background: var(--cor-perigo);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}
.sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Main content */
.main-content {
  margin-left: 230px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.page-header {
  background: var(--cor-fundo-card);
  border-bottom: 1px solid var(--cor-borda);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}
.page-title { font-size: 1.1rem; font-weight: 700; }
.page-subtitle { font-size: 0.775rem; color: var(--cor-texto-suave); margin-top: 1px; }
.page-body { padding: 1rem 1.25rem; flex: 1; }

/* =============================================
   COMPONENTES â€” TABELA
   ============================================= */
.table-wrapper {
  background: var(--cor-fundo-card);
  border: 1px solid var(--cor-borda);
  border-radius: var(--radius-md);
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: var(--sombra-sm);
  -webkit-overflow-scrolling: touch;
}
.table-wrapper .data-table {
  min-width: 700px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table thead th {
  background: var(--cor-fundo);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cor-texto-suave);
  border-bottom: 1px solid var(--cor-borda);
}
.data-table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--cor-borda);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #FAFAFA; }
.table-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--cor-texto-suave);
}
.table-empty .empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* =============================================
   COMPONENTES â€” FILTROS / BUSCA
   ============================================= */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search-input-wrapper .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cor-texto-suave);
  font-size: 0.9rem;
}
.search-input-wrapper input {
  padding-left: 2.25rem;
}
.filter-select {
  min-width: 140px;
}

/* =============================================
   COMPONENTES â€” ALERTAS
   ============================================= */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.alert-danger { background: #FEF2F2; color: #991B1B; border-left: 4px solid var(--cor-perigo); }
.alert-success { background: #ECFDF5; color: #065F46; border-left: 4px solid var(--cor-sucesso); }
.alert-warning { background: #FFFBEB; color: #92400E; border-left: 4px solid var(--cor-aviso); }
.alert-info { background: #EFF6FF; color: #1E40AF; border-left: 4px solid var(--cor-info); }
.alert-critico {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #7F1D1D;
  border-left: 4px solid #DC2626;
  font-weight: 600;
}

/* =============================================
   COMPONENTES â€” MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal {
  background: var(--cor-fundo-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--sombra-lg);
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.2s ease;
}
.modal-lg { max-width: 720px; }
.modal-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--cor-borda);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--cor-texto-suave);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.modal-close:hover { background: var(--cor-fundo); }
.modal-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--cor-borda);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* =============================================
   LANDING PAGE
   ============================================= */
.landing-nav {
  background: #fff;
  border-bottom: 1px solid var(--cor-borda);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sombra-sm);
}
.landing-logo { display: flex; align-items: center; gap: 0.75rem; }
.landing-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--cor-primaria);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}
.landing-logo-text { font-size: 1rem; font-weight: 700; color: var(--cor-texto); }
.landing-logo-sub { font-size: 0.7rem; color: var(--cor-texto-suave); }

.hero {
  background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
}
.hero-title { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.125rem; opacity: 0.9; max-width: 560px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  background: #fff;
  color: var(--cor-primaria);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transicao);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); text-decoration: none; color: var(--cor-primaria); }
.btn-hero-secondary {
  background: transparent;
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all var(--transicao);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.1); text-decoration: none; color: #fff; }

.features-section { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
.features-title { text-align: center; font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.features-subtitle { text-align: center; color: var(--cor-texto-suave); margin-bottom: 3rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--cor-fundo-card);
  border: 1px solid var(--cor-borda);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transicao);
}
.feature-card:hover { box-shadow: var(--sombra-md); }
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--cor-primaria-light);
  color: var(--cor-primaria);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.875rem; color: var(--cor-texto-suave); line-height: 1.6; }

/* Info box NR-1 */
.nr1-info {
  background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 0 2rem 4rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* FormulÃ¡rio de denÃºncia pÃºblico */
.denuncia-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.denuncia-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--cor-borda);
}
.denuncia-icon {
  width: 52px;
  height: 52px;
  background: var(--cor-primaria-light);
  color: var(--cor-primaria);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.denuncia-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.step-num {
  width: 28px;
  height: 28px;
  background: var(--cor-primaria);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-title { font-weight: 700; font-size: 1rem; }

/* Protocolo de sucesso */
.protocolo-card {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1px solid #6EE7B7;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.protocolo-num {
  font-size: 2rem;
  font-weight: 800;
  color: #065F46;
  letter-spacing: 0.05em;
  font-family: monospace;
  margin: 1rem 0;
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
  padding: 2rem;
}
.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.login-logo .logo-box {
  width: 56px;
  height: 56px;
  background: var(--cor-primaria);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.login-logo h1 { font-size: 1.25rem; font-weight: 800; }
.login-logo p { color: var(--cor-texto-suave); font-size: 0.875rem; }

/* Rastrear denÃºncia */
.rastrear-container {
  max-width: 560px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.rastrear-card {
  background: var(--cor-fundo-card);
  border: 1px solid var(--cor-borda);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--sombra-md);
}
.tracking-code-input {
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Timeline de histÃ³rico */
.timeline { padding-left: 1.25rem; border-left: 2px solid var(--cor-borda); }
.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
  padding-left: 1.25rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.45rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cor-primaria);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--cor-primaria);
}
.timeline-label { font-weight: 600; font-size: 0.875rem; }
.timeline-meta { font-size: 0.775rem; color: var(--cor-texto-suave); }
.timeline-desc { font-size: 0.85rem; color: var(--cor-texto-suave); margin-top: 0.25rem; }

/* Progress bar SLA */
.sla-bar { margin-top: 0.5rem; }
.sla-progress {
  height: 6px;
  background: var(--cor-borda);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.sla-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}
.sla-ok { background: var(--cor-sucesso); }
.sla-warning { background: var(--cor-aviso); }
.sla-danger { background: var(--cor-perigo); }

/* =============================================
   ANIMAÃ‡Ã•ES
   ============================================= */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease; }

/* =============================================
   BOTÃƒO HAMBÃšRGUER (mobile)
   ============================================= */
.btn-hamburger {
  display: none;
  position: fixed;
  top: 0.875rem;
  left: 0.500rem;
  z-index: 200;
  background: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-md);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 900px) {
  .btn-hamburger { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content {
    margin-left: 0;
    height: 100vh;
  }
  .page-header { padding-left: 3.5rem; }
  .page-body { padding: 0.75rem 1rem; }
  .hero-title { font-size: 1.875rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}
@media (max-width: 640px) {
  .stat-cards-grid { grid-template-columns: 1fr 1fr; }
  .modal { max-width: 100%; border-radius: var(--radius-md); }
  .login-card { padding: 1.75rem; }
}
