/* Brusselsexpress main styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
  --primary: #0B3D91;
  --secondary: #FF6A00;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f7f9fc;
  --card: #ffffff;
  --border: #e5e7eb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary);
}
.logo img { height: 40px; width: 40px; object-fit: cover; border-radius: 8px; }
.nav-links { display: flex; gap: 18px; font-weight: 500; }
.hero {
  max-width: 1100px;
  margin: 48px auto;
  padding: 40px 32px;
  background: linear-gradient(135deg, rgba(11,61,145,0.08), rgba(255,106,0,0.08));
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}
.hero-single { display: block; }
.hero h1 { margin: 0 0 12px; font-size: 32px; color: var(--primary); }
.hero p { margin: 0 0 20px; color: var(--muted); }
.form-card {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
label { display: block; font-weight: 600; margin-bottom: 8px; }
input[type="text"], input[type="datetime-local"], input[type="date"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.2s ease;
}
.btn-primary { background: linear-gradient(90deg, var(--primary), #0d4fae); color: #fff; box-shadow: 0 10px 30px rgba(11,61,145,0.35); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--text); }
button:hover, .btn:hover { transform: translateY(-1px); }
.status-pill { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 600; color: #fff; background: var(--primary); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.grid { display: grid; gap: 16px; }
.timeline { position: relative; padding-left: 28px; }
.timeline:before { content: ''; position: absolute; left: 10px; top: 6px; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 16px 0; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker { position: absolute; left: -4px; top: 4px; height: 14px; width: 14px; background: var(--secondary); border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(255,106,0,0.15); }
.timeline-content { padding-left: 12px; }
.timeline-date { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.timeline-status { font-weight: 600; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 8px; background: #eef2ff; color: var(--primary); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; }
.table td { font-weight: 500; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.flash-success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecdd3; }
.progress {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.stage { position: relative; padding: 10px 8px; border-radius: 12px; background: #f3f4f6; text-align: center; font-weight: 600; color: var(--muted); border: 1px dashed var(--border); }
.stage.active { background: #e5edfb; color: var(--primary); border-color: var(--primary); box-shadow: 0 10px 18px rgba(11,61,145,0.12); }
.stage:after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); height: 10px; width: 10px; border-right: 2px solid var(--border); border-bottom: 2px solid var(--border); transform: translateY(-50%) rotate(-45deg); }
.stage:last-child:after { display: none; }
.footer { text-align: center; color: var(--muted); padding: 24px 0 32px; font-size: 14px; }
.layout { max-width: 1100px; margin: 24px auto; padding: 0 20px; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.table-actions { display: flex; gap: 8px; }
.track-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.timeline-card { border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); }
.timeline-header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.route-text { color: var(--muted); font-weight:600; }
.status-badge { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:12px; background:#e5edfb; color:var(--primary); font-weight:700; }
.orders-grid { display:flex; flex-direction:column; gap:14px; }
.order-card { display:flex; flex-direction:column; gap:6px; }
.order-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.order-count-badge { display:none; min-width:20px; padding:2px 6px; border-radius:999px; background:#dc2626; color:#fff; font-size:12px; font-weight:700; line-height:1; vertical-align:middle; }
.account-box { position:relative; display:inline-block; }
.avatar { width:32px; height:32px; border-radius:50%; background:#0B1A2F; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; cursor:pointer; }
.account-menu { position:absolute; right:0; top:40px; background:#fff; border:1px solid var(--border); border-radius:12px; padding:12px; box-shadow:0 12px 30px rgba(0,0,0,0.12); min-width:200px; display:none; }
.account-menu.open { display:block; }
.account-name { font-weight:700; }
.account-email { color:var(--muted); font-size:13px; margin-bottom:8px; }
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.45); backdrop-filter: blur(3px); opacity:0; pointer-events:none; transition:opacity 0.2s ease; z-index:999; }
.modal-overlay.open { opacity:1; pointer-events:auto; }
.auth-modal { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%) scale(0.96); background:#fff; border-radius:18px; padding:24px 24px 20px; width: min(420px, 92vw); box-shadow:0 24px 70px rgba(0,0,0,0.2); opacity:0; pointer-events:none; transition: opacity 0.2s ease, transform 0.2s ease; z-index:1000; }
.auth-modal.open { opacity:1; pointer-events:auto; transform:translate(-50%,-50%) scale(1); }
.auth-actions { display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.btn-google { background:#fff; color:#374151; border:1px solid #e5e7eb; }
.btn-email { background:#0d4fae; color:#fff; }
.btn-secondary-outline { background:#fff; border:1px solid var(--border); color:var(--text); }
.last-updated { color: var(--muted); font-size: 13px; margin-top: 4px; }
.modern-steps { margin-top:16px; position:relative; display:flex; flex-direction:column; gap:12px; }
.step-row { display:grid; grid-template-columns: 32px 1fr; gap:12px; align-items:flex-start; }
.step-marker { position:relative; display:flex; flex-direction:column; align-items:center; }
.step-line { position:absolute; width:2px; background: var(--border); top:28px; bottom:-14px; left:15px; }
.check-icon { background:#1a7f37; color:#fff; height:28px; width:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; }
.spinner { height:28px; width:28px; border-radius:50%; border:3px solid #c7d2fe; border-top-color: #1d4ed8; animation: spin 0.8s linear infinite; }
.future-dot { height:10px; width:10px; border-radius:50%; background:#d1d5db; margin-top:9px; }
.step-body { background:#fff; border:1px solid var(--border); border-radius:12px; padding:10px 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.04); }
.step-title { font-weight:700; }
.step-sub { color: var(--muted); font-size:13px; margin-top:2px; }
.step-location { color: var(--muted); font-weight:600; margin-top:4px; }
.step-row.completed .step-body { background:#e6f7ec; border-color:#bbf7d0; color:#1a7f37; }
.step-row.completed .step-sub, .step-row.completed .step-location { color:#1a7f37; }
.step-row.current .step-body { border-color:#c7d2fe; box-shadow: 0 8px 22px rgba(29,78,216,0.12); }
.step-row.future { opacity:0.6; }
.detail-card { border-radius:16px; }
.detail-card { border-radius:16px; }
.loader-overlay { position:fixed; inset:0; background:rgba(255,255,255,0.8); backdrop-filter: blur(4px); display:flex; align-items:center; justify-content:center; z-index:999; opacity:0; pointer-events:none; transition: opacity 0.2s ease; }
.loader-overlay.active { opacity:1; pointer-events:auto; }
.loader-dots { display:flex; gap:8px; }
.loader-dots span { width:10px; height:10px; border-radius:50%; background: var(--primary); animation: pulse 0.9s infinite alternate; }
.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { from { transform: translateY(0); opacity:0.4; } to { transform: translateY(-6px); opacity:1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-page { min-height: 100vh; display:flex; align-items:center; justify-content:center; background: radial-gradient(circle at 20% 20%, rgba(11,61,145,0.08), transparent 40%), radial-gradient(circle at 80% 10%, rgba(255,106,0,0.08), transparent 38%), #f5f7fb; padding: 24px; }
.auth-card { width: min(460px, 100%); background:#fff; border:1px solid #eef1f5; border-radius: 16px; padding: 32px 30px; box-shadow: 0 20px 60px rgba(15,23,42,0.12); }
.auth-header { margin-bottom:16px; }
.auth-title { margin:0; font-size: 26px; color: var(--primary); font-weight: 800; }
.auth-sub { margin:4px 0 0; color: var(--muted); }
.auth-section { margin-top:16px; display:flex; flex-direction:column; gap:10px; }
.auth-separator { text-align:center; color: var(--muted); font-weight:600; margin:12px 0; position:relative; }
.auth-separator:before, .auth-separator:after { content:''; position:absolute; top:50%; width:38%; height:1px; background: var(--border); }
.auth-separator:before { left:0; } .auth-separator:after { right:0; }
.btn-block { width:100%; }
.btn-google-modern { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; border:1px solid #e5e7eb; padding:12px 14px; border-radius:12px; background:#fff; font-weight:700; color:#374151; cursor:pointer; }
.muted-link { color: var(--primary); font-weight:600; text-align:center; display:block; margin-top:12px; }
.auth-input { width:100%; padding:12px 14px; border:1px solid #e5e7eb; border-radius:10px; font-size:15px; background:#f8fafc; }
.auth-input:focus { outline:2px solid rgba(11,61,145,0.25); background:#fff; }
.btn-dark { background:#0B1A2F; color:#fff; }
@media (max-width: 768px) {
  .navbar { padding: 14px 18px; }
  .hero { margin: 24px 12px; padding: 28px 22px; }
  .progress { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .stage:after { display: none; }
  .track-grid { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 32px 1fr; }
  .order-actions { width:100%; }
}
