/* ============================================================
   TaxiCooper Pro — Portais (Motorista/Passageiro)
   ============================================================ */
body.portal-body{background:var(--gray-100)}
.portal-header{background:var(--secondary);color:var(--white);padding:18px 26px;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow-md)}
.portal-header .brand{display:flex;align-items:center;gap:10px;font-size:1.2rem;font-weight:800}
.portal-header .brand span{font-size:1.5rem}
.portal-header .hdr-actions{display:flex;align-items:center;gap:10px}
.portal-header .hdr-actions a{color:var(--white);font-size:.85rem;padding:6px 10px;border-radius:8px;border:1px solid rgba(255,255,255,.2);transition:all .2s}
.portal-header .hdr-actions a:hover{background:rgba(255,255,255,.12)}
.portal-container{max-width:1200px;margin:24px auto;padding:0 24px 60px}
.portal-hero{background:linear-gradient(120deg,#1e293b 0%,#0f172a 100%);color:var(--white);border-radius:var(--radius-lg);padding:28px;display:grid;grid-template-columns:2fr 1fr;gap:20px;box-shadow:var(--shadow-lg)}
.portal-hero h1{font-size:2rem;font-weight:800;margin-bottom:6px}
.portal-hero p{color:rgba(255,255,255,.75);font-size:.95rem}
.portal-hero .hero-card{background:rgba(255,255,255,.08);border-radius:14px;padding:16px;border:1px solid rgba(255,255,255,.12)}
.portal-hero .hero-card h3{font-size:.95rem;margin-bottom:10px}
.portal-hero .hero-card .value{font-size:1.6rem;font-weight:800}
.portal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:24px 0}
.portal-card{background:var(--white);border-radius:var(--radius-lg);padding:18px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px}
.portal-card h3{font-size:.95rem;font-weight:700;color:var(--gray-700)}
.portal-card p{font-size:.85rem;color:var(--gray-500)}
.portal-card .value{font-size:1.5rem;font-weight:800;color:var(--gray-900)}
.portal-section{margin-top:20px}
.portal-section h2{font-size:1.1rem;font-weight:800;margin-bottom:12px}
.portal-table{width:100%;border-collapse:collapse;background:var(--white);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow)}
.portal-table th,.portal-table td{padding:12px 14px;text-align:left;font-size:.85rem;border-bottom:1px solid var(--gray-100)}
.portal-table thead{background:var(--gray-50)}
.portal-table th{font-size:.7rem;text-transform:uppercase;letter-spacing:.5px;color:var(--gray-500)}
.portal-table tbody tr:hover{background:var(--gray-50)}
.portal-table tbody tr:last-child td{border-bottom:none}
.status-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:.75rem;font-weight:700}
.status-green{background:var(--success-light);color:#065f46}
.status-yellow{background:var(--warning-light);color:#92400e}
.status-red{background:var(--danger-light);color:#991b1b}
.quick-actions{display:flex;flex-wrap:wrap;gap:10px}
.form-inline{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-top:12px}
.form-inline .btn{justify-content:center}
.notice{padding:12px;border-radius:10px;background:var(--info-light);color:#1e40af;font-size:.82rem}
.toast-portal{position:fixed;bottom:24px;right:24px;background:var(--secondary);color:var(--white);padding:12px 16px;border-radius:10px;box-shadow:var(--shadow-lg);display:none;font-size:.85rem}
.toast-portal.show{display:block;animation:slideInRight .3s ease}

.driver-card{display:flex;align-items:center;gap:10px}
.driver-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid #f59e0b;background:#fef3c7}
.driver-meta{display:flex;flex-direction:column;gap:4px}
.driver-meta small{color:var(--gray-500)}
.driver-contacts{display:flex;flex-wrap:wrap;gap:8px;font-size:.75rem}
.driver-contacts a{color:#0f172a;text-decoration:none;font-weight:700}
.driver-contacts span{color:var(--gray-500)}
.muted{color:var(--gray-500)}

@media (max-width:900px){
  .portal-hero{grid-template-columns:1fr}
  .portal-header{flex-direction:column;align-items:flex-start;gap:12px}
}

@media (max-width:600px){
  .portal-container{padding:0 16px 40px}
  .portal-hero h1{font-size:1.6rem}
  .portal-card{padding:14px}
  .form-inline{grid-template-columns:1fr}
  .btn{padding:12px 16px;font-size:.9rem}
  .portal-table{display:block;overflow-x:auto}
}

/* ============================================================
   Tema Passageiro (Azul escuro + dourado)
   ============================================================ */
.passenger-theme{
  background:#0b1320;
  color:#e2e8f0;
  --primary:#d4af37;
  --primary-dark:#b88a1f;
  --primary-light:#f6e4a6;
  --secondary:#0b1a2b;
  --secondary-light:#132742;
  --info-light:#1e3a5f;
  --gray-50:#0f1e33;
  --gray-100:#0d1828;
  --gray-200:#1a2a40;
  --gray-300:#22344f;
  --gray-400:#8aa0bf;
  --gray-500:#9bb0c9;
  --gray-700:#d1d9e6;
  --gray-900:#f8fafc;
}
.passenger-theme .portal-header{
  background:linear-gradient(120deg,#0b1a2b 0%,#132c49 100%);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.passenger-theme .portal-header .hdr-actions a{
  border-color:rgba(212,175,55,.35);
  color:#f8e9b7;
}
.passenger-theme .portal-header .hdr-actions a:hover{
  background:rgba(212,175,55,.12);
}
.passenger-theme .portal-hero{
  background:linear-gradient(120deg,#0b1a2b 0%,#0f2744 100%);
  border:1px solid rgba(212,175,55,.15);
}
.passenger-theme .portal-card,
.passenger-theme .portal-table{
  background:#0f1e33;
  color:#e5edf7;
  border:1px solid rgba(212,175,55,.12);
}
.passenger-theme .portal-card h3,
.passenger-theme .portal-section h2{color:#f8e9b7}
.passenger-theme .portal-card p,
.passenger-theme .portal-table th{color:#b7c6dc}
.passenger-theme .portal-table thead{background:#0d1828}
.passenger-theme .portal-table tbody tr:hover{background:#132741}
.passenger-theme .notice{background:#132741;color:#f8e9b7}
.passenger-theme .btn{
  border-radius:999px;
}
.passenger-theme .btn-primary{
  background:var(--primary);
  color:#1a2333;
}
.passenger-theme .btn-primary:hover{background:var(--primary-dark)}
.passenger-theme .btn-secondary{background:#1b2f4d;color:#f8e9b7;border:1px solid rgba(212,175,55,.25)}
.passenger-theme .btn-outline{border-color:rgba(212,175,55,.45);color:#f8e9b7}
.passenger-theme .hero-card{background:rgba(255,255,255,.06);border:1px solid rgba(212,175,55,.18)}
.passenger-theme .portal-table th,.passenger-theme .portal-table td{border-bottom:1px solid rgba(255,255,255,.08)}

.map-card{margin-top:16px;background:rgba(255,255,255,.06);border:1px solid rgba(212,175,55,.18);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px}
.map-card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.map-card-header h3{font-size:.95rem}
.map-card-header p{font-size:.8rem;color:#c7d6ea}
.map-actions{display:flex;gap:8px;flex-wrap:wrap}
.pass-map{height:280px;border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,.12)}
.map-hint{font-size:.75rem;color:#c7d6ea}
.map-actions .btn.active{box-shadow:0 0 0 2px rgba(212,175,55,.35) inset}
