:root {
  --bg: #1b1815;
  --bg-alt: #24201c;
  --primary: #9a2b2b;
  --primary-dark: #7a2222;
  --accent: #c68a3d;
  --text: #f3ece1;
  --text-soft: #c9bfae;
  --line: #3a352e;
  --good: #4f8a5b;
  --warn: #c68a3d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: "Zilla Slab", serif;
  font-weight: 600;
  margin: 0 0 12px;
}

a { color: var(--accent); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.topbar .marca {
  font-family: "Zilla Slab", serif;
  font-size: 1.2rem;
  color: var(--accent);
}

.topbar nav a {
  color: var(--text-soft);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}

.topbar nav a.ativo, .topbar nav a:hover { color: var(--accent); }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 4px;
  margin-top: 12px;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #14110f;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 11px 18px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary { background: var(--primary); color: var(--text); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text-soft); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

.btn-destaque {
  background: var(--accent);
  color: #1b1815;
  font-size: 1.05rem;
  padding: 16px 20px;
  box-shadow: 0 0 0 2px rgba(198, 138, 61, 0.25);
}
.btn-destaque:hover { background: #d69b4c; }

.select-motoqueiro { min-width: 140px; width: auto; }

.erro {
  background: rgba(154, 43, 43, 0.25);
  border: 1px solid var(--primary);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box { width: 100%; max-width: 360px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
th { color: var(--text-soft); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-pendente { background: rgba(198, 138, 61, 0.25); color: var(--accent); }
.badge-em-rota { background: rgba(154, 43, 43, 0.3); color: #e08a8a; }
.badge-entregue { background: rgba(79, 138, 91, 0.3); color: #8fd39c; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
