/* ============================================
   APP DO MOTORISTA - ESTILO (COMPLEMENTAR)
   ============================================ */

:root {
  --m-bg: #f5f7fb;
  --m-card: #ffffff;
  --m-border: #e7edf6;
}

body.motorista-body {
  background: var(--m-bg);
}

.motorista-header {
  background: linear-gradient(135deg, #0b63ce 0%, #0b3f8a 100%);
}

.motorista-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.motorista-nav {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

.motorista-nav a {
  color: #fff;
  text-decoration: none;
  padding: .5rem .85rem;
  border-radius: 999px;
  transition: background .2s ease;
  font-weight: 600;
  font-size: .95rem;
}

.motorista-nav a:hover {
  background: rgba(255,255,255,.18);
}

.motorista-nav a.active {
  background: rgba(255,255,255,.26);
}

.motorista-page {
  padding: 1.5rem 0;
}

.motorista-kpi {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.motorista-kpi .card {
  background: var(--m-card);
  border: 1px solid var(--m-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 20px rgba(2, 20, 60, .06);
}

.motorista-kpi .card .label {
  color: #5b6b82;
  font-weight: 700;
  font-size: .9rem;
}

.motorista-kpi .card .value {
  margin-top: .35rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b3f8a;
}

.motorista-card {
  background: var(--m-card);
  border: 1px solid var(--m-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 20px rgba(2, 20, 60, .06);
}

.motorista-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.motorista-card h3, .motorista-card h4 {
  margin: 0 0 .75rem;
}

.motorista-muted {
  color: #5b6b82;
}

.motorista-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #d9ebff;
  color: #0b63ce;
  font-weight: 700;
  font-size: .85rem;
}

@media (max-width: 900px) {
  .motorista-kpi { grid-template-columns: 1fr; }
  .motorista-grid-2 { grid-template-columns: 1fr; }
}

/* Toasts */
.toast-container {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 3000;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
}

.toast {
  border-radius: 14px;
  padding: .9rem 1rem;
  border: 1px solid var(--m-border);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(2, 20, 60, .16);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  animation: toastIn .18s ease-out;
}

.toast .title {
  font-weight: 800;
  margin: 0;
}

.toast .msg {
  margin-top: .2rem;
  color: #334155;
  font-weight: 600;
  font-size: .95rem;
}

.toast .close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 10px;
  color: #334155;
}
.toast .close:hover { background: rgba(15, 23, 42, .06); }

.toast.success { border-color: #a7f3d0; background: #ecfdf5; }
.toast.success .title { color: #065f46; }

.toast.error { border-color: #fecaca; background: #fef2f2; }
.toast.error .title { color: #991b1b; }

.toast.info { border-color: #bae6fd; background: #f0f9ff; }
.toast.info .title { color: #075985; }

@keyframes toastIn {
  from { transform: translateY(-6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


