:root {
  --pt-primaria: #006c8e;
  --pt-secundaria: #0087b2;
  --pt-destaque: #12e5e5;
  --pt-fundo-escuro: #0A0A32;
  --pt-texto-escuro: #e2e2e8;
  --pt-fundo-claro: #FBFBFB;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f0f2f5;
  color: #262626;
}

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A0A32 0%, #0d2b3e 60%, #006c8e 130%);
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 34px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.login-card .logo { text-align: center; margin-bottom: 18px; }
.login-card .logo img { max-height: 72px; }
.login-card h1 { font-size: 22px; font-weight: 700; color: #0A0A32; text-align: center; margin-bottom: 4px; }
.login-card p.sub { text-align: center; color: #6b7280; margin-bottom: 22px; }

/* ---------- Layout painel ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px;
  background: var(--pt-fundo-escuro);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  z-index: 100;
}
.sidebar .brand {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar .brand img { max-height: 40px; max-width: 120px; object-fit: contain; }
.sidebar .brand span { font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  color: var(--pt-texto-escuro);
  text-decoration: none;
  padding: 12px 16px;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar nav a.ativo {
  background: rgba(0,108,142,.28);
  border-left-color: var(--pt-primaria);
  color: #fff;
}
.main {
  margin-left: 250px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 90;
}
.topbar h2 { font-size: 18px; margin: 0; font-weight: 700; }
.conteudo { padding: 24px; }

/* ---------- Cards ---------- */
.card { border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.card-titulo { font-weight: 700; font-size: 15px; margin-bottom: 12px; display:flex; align-items:center; justify-content:space-between; }
.estatistica {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
}
.estatistica .num { font-size: 26px; font-weight: 800; color: var(--pt-primaria); }
.estatistica .rotulo { color: #6b7280; font-size: 13px; }

/* ---------- Tabelas ---------- */
.table td, .table th { vertical-align: middle; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; background: #e5e7eb;
}

/* ---------- Badges ---------- */
.badge-pendente { background:#fef3c7; color:#92400e; }
.badge-aprovado { background:#d1fae5; color:#065f46; }
.badge-reprovado { background:#fee2e2; color:#991b1b; }
.badge-bloqueado { background:#fee2e2; color:#991b1b; }
.badge-ativo { background:#d1fae5; color:#065f46; }
.badge-online { background:#d1fae5; color:#065f46; }
.badge-offline { background:#e5e7eb; color:#374151; }
.badge-suspenso { background:#fde68a; color:#78350f; }
.badge-cliente { background:#dbeafe; color:#1e40af; }
.badge-motorista { background:#fef3c7; color:#92400e; }

/* ---------- Mapa ---------- */
.mapa { height: 420px; border-radius: 12px; border: 1px solid #e5e7eb; z-index: 1; }
.mapa-grande { height: 480px; }
.mapa-mini { height: 220px; }

/* ---------- Modais/geral ---------- */
.ponto-mapa { width: 100%; }
.btn-icone { border: none; background: none; font-size: 17px; color: #6b7280; cursor: pointer; }
.btn-icone:hover { color: #111827; }
.acoes { white-space: nowrap; }
.toast-container { position: fixed; top: 16px; right: 16px; z-index: 2000; }
.foto-grande { max-width: 200px; border-radius: 10px; border: 1px solid #e5e7eb; }
.motorista-atual-live {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; margin-bottom: 12px;
}
.vazio { text-align:center; color:#6b7280; padding: 40px 0; }
.vazio i { font-size: 42px; display:block; margin-bottom: 8px; color:#c7cdd8; }

@media (max-width: 992px) {
  .sidebar { width: 220px; }
  .main { margin-left: 220px; }
}
