:root {
  --poco: #0B3C49;
  --agua: #2FA8A0;
  --sol: #E8A317;
  --concreto: #EDEFEC;
  --grafite: #16211F;
  --alerta: #B3402F;
  
  --bg-color: #0A2A33;
  --text-color: #FFFFFF;
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, label, .btn, .condensed {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Layout básico */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

header {
  margin-bottom: 24px;
}

header h1 {
  font-size: 24px;
  color: var(--poco);
}

/* Formulários */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: 0.5px;
}

input[type="text"], input[type="tel"], input[type="password"], input[type="date"], input[type="number"], input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  border-radius: var(--border-radius);
  font-family: 'Inter', sans-serif;
}
input::placeholder {
  color: #888;
}

input:focus {
  outline: 2px solid var(--poco);
  outline-offset: 2px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  background-color: var(--poco);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #082a33;
}

.btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.btn.primary {
  background-color: var(--agua);
}
.btn.primary:hover {
  background-color: #24827c;
}

.btn.danger {
  background-color: var(--alerta);
}
.btn.danger:hover {
  background-color: #923426;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Placa Caminhão */
.placa {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  background: #f0f0f0;
  color: black;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: bold;
}
.placa-tarja {
  background-color: #003399; /* Azul mercosul */
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  padding: 2px 0;
  letter-spacing: 1px;
}
.placa-num {
  padding: 4px 8px;
}

/* Alertas/Mensagens */
.alert {
  padding: 16px;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  font-weight: 500;
}
.alert.error {
  background-color: #fce8e6;
  color: var(--alerta);
  border: 1px solid var(--alerta);
}
.alert.success {
  background-color: #e6f6f5;
  color: var(--agua);
  border: 1px solid var(--agua);
}

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: #666;
  font-style: italic;
}

/* Acessibilidade - reduz animação */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Modal / Gaveta (Drawer) */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: flex-end;
  z-index: 100;
}
.drawer-overlay.active {
  display: flex;
}
.drawer-content {
  background: var(--poco);
  width: 100%;
  max-height: 80vh;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: var(--sol);
}
.drawer-header h3 {
  font-size: 20px;
}
.drawer-body {
  overflow-y: auto;
}
.drawer-list-item {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  font-size: 16px;
  color: white;
}
.drawer-list-item:hover {
  background: rgba(255,255,255,0.05);
}
.drawer-list-item:last-child {
  border-bottom: none;
}

/* Utilitários */
.hidden { display: none !important; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 16px; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* Status Labels */
.status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.status.pendente, .status.pedido {
  background-color: #fff3cd;
  color: #856404;
}
.status.executado, .status.abastecido {
  background-color: #cce5ff;
  color: #004085;
}
.status.entregue { color: #155724; background: #d4edda; }
.status.expirado { color: #721c24; background: #f8d7da; }
.status.excluido { color: #856404; background: #fff3cd; text-decoration: line-through; }

.error-border {
  border: 2px solid #dc3545 !important;
  box-shadow: 0 0 5px rgba(220, 53, 69, 0.5) !important;
}

/* Botões Selecionáveis (lado a lado) */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.option-btn {
  height: 48px;
  background-color: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--border-radius);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: white;
}
.option-btn:hover {
  background: rgba(255,255,255,0.05);
}
.option-btn.selected {
  background-color: var(--agua);
  color: white;
  border-color: var(--agua);
}

.logout-btn {
  background: none;
  border: none;
  color: var(--alerta);
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
}
