:root{
  --bg: #0b0f17;
  --card: #121a27;
  --text: #e7eefc;
  --muted: #a9b4c7;
  --accent: #ff7a00;

  --danger: #ff3b3b;
  --ok: #2ecc71;
  --info: #a9b4c7;

  --border: rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.25);

  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing:border-box; }
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
}

a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{ max-width:920px; margin:0 auto; padding:18px; }

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.topbar .actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* ✅ NUEVO: acciones genéricas (usadas en pasajero.html / conductor.html) */
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:16px;
  margin:12px 0;
  box-shadow:var(--shadow);
}

.muted{ color:var(--muted); }

.hr{ height:1px; background:var(--border); margin:14px 0; }

.row{ display:flex; gap:10px; flex-wrap:wrap; }
.col{ flex:1; min-width:220px; }

label{ display:block; font-size:12px; color:var(--muted); margin:6px 0; }

input,select,textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#0e1522;
  color:var(--text);
  outline:none;
}
textarea{ min-height:90px; resize:vertical; }

button{
  cursor:pointer;
  background:var(--accent);
  border:none;
  color:#111;
  font-weight:700;
  padding:10px 14px;
  border-radius:12px;
}

/* ✅ Opcional: por si alguna pantalla usa .primary */
button.primary{ background:var(--accent); color:#111; }

button.secondary{ background:transparent; border:1px solid var(--border); color:var(--text); }
button.danger{ background:var(--danger); color:#fff; }
button.ok{ background:var(--ok); color:#0b0f17; }

.badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:var(--radius-pill);
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
}
.badge--ok{ color:var(--ok); }
.badge--muted{ color:var(--muted); }
.badge--danger{ color:var(--danger); }

.status--ok{ color:var(--ok); }
.status--info{ color:var(--info); }
.status--error{ color:var(--danger); }

.list{ display:flex; flex-direction:column; gap:10px; }

.item{
  padding:12px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:#0e1522;
}
.item strong{ display:block; }
.item-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

.code{
  font-family:var(--mono);
  font-size:12px;
  white-space:pre-wrap;
  background:#0a101b;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px;
  color:#d7e2ff;
}

.note{
  border-left:4px solid var(--accent);
  padding:10px 12px;
  background:#0a101b;
  border-radius:12px;
}

/* Utilidades */
.mt-10{ margin-top:10px; }
.mt-8{ margin-top:8px; }


/* ===========================
   MAPA (MapLibre) - opcional
   =========================== */
.map{
  width:100%;
  height:280px;
  border-radius: var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--border);
  background:#0a101b;
}

/* Marker custom */
.ma-marker{
  width:14px;
  height:14px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.9);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.ma-marker--driver{ background: var(--accent); }
.ma-marker--origin{ background: #2ecc71; }
.ma-marker--dest{ background: #ff3b3b; }
