/* CSS minimo customizado, complementa Tailwind CDN. */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.status-green { color: #22c55e; }
.status-yellow { color: #eab308; }
.status-red { color: #ef4444; }

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.card {
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 10px;
  padding: 18px;
}

.sidebar-link {
  display: block;
  padding: 10px 14px;
  color: #cbd5e1;
  border-radius: 6px;
  margin-bottom: 4px;
  text-decoration: none;
}
.sidebar-link:hover, .sidebar-link.active {
  background: #334155;
  color: #fff;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
}
table.data-table th, table.data-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
table.data-table th {
  color: #94a3b8;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
table.data-table tr:hover td { background: rgba(148, 163, 184, 0.04); }

/* ============== LIGHT MODE (opt-in via classe body.theme-light) ============== */
body.theme-light { background: #f1f5f9; color: #1e293b; }
body.theme-light .card { background: #fff; border-color: #e2e8f0; }
body.theme-light aside { background: #1e293b; } /* sidebar sempre dark */
body.theme-light .sidebar-link { color: #cbd5e1; }
body.theme-light .sidebar-link:hover,
body.theme-light .sidebar-link.active { color: #fff; background: rgba(255,255,255,0.1); }
body.theme-light .data-table th { background: #e2e8f0; color: #475569; }
body.theme-light .data-table td { border-color: #e2e8f0; color: #334155; }
body.theme-light select,
body.theme-light input,
body.theme-light textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}
body.theme-light .bg-slate-800 { background: #f8fafc !important; }
body.theme-light .border-slate-700 { border-color: #cbd5e1 !important; }
body.theme-light .text-white { color: #1e293b !important; }
body.theme-light .text-slate-300 { color: #475569 !important; }
body.theme-light .text-slate-400 { color: #64748b !important; }
body.theme-light .bg-slate-900\/60 { background: rgba(241,245,249,0.9) !important; }
body.theme-light .bg-\[#1e293b\] { background: #1e293b !important; } /* sidebar */
body.theme-light main { background: #f1f5f9; }
