/* =========================================================
   SIMrental-BPR — CV. All Trans Grup Medan
   Stylesheet v2 — professional theme
   ========================================================= */

:root {
  --primary: #1450d6;
  --primary-dark: #0d3aa8;
  --primary-light: #eaf0fe;
  --accent: #f5a524;
  --dark: #10192e;
  --dark-soft: #1a2540;
  --light-bg: #f5f7fb;
  --surface: #ffffff;
  --border: #e4e8f1;
  --text: #1f2937;
  --text-muted: #6b7280;
  --success: #16a34a;
  --success-bg: #e7f8ee;
  --warning: #b45309;
  --warning-bg: #fef3e0;
  --danger: #dc2626;
  --danger-bg: #fdeceb;
  --info: #0891b2;
  --info-bg: #e5f8fc;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 25, 46, .06);
  --shadow: 0 4px 16px rgba(16, 25, 46, .08);
  --shadow-lg: 0 12px 32px rgba(16, 25, 46, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; color: var(--dark); margin-top: 0; }

a { text-decoration: none; color: var(--primary); transition: color .15s ease; }
a:hover { color: var(--primary-dark); }

::selection { background: var(--primary-light); color: var(--primary-dark); }

/* ---------- Layout helpers ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 32px 24px; }
.container-narrow { max-width: 680px; margin: 0 auto; padding: 32px 24px; }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.navbar .brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.01em;
}
.navbar .brand .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #4f7dfb);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(20,80,214,.4);
}
.navbar .brand span { color: #8fb0ff; font-weight: 800; }
.navbar .brand small { display: block; font-size: .66rem; font-weight: 500; color: #98a2bf; letter-spacing: .04em; }
.navbar nav { display: flex; align-items: center; }
.navbar nav a {
  color: #c7cde0;
  margin-left: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  transition: all .15s ease;
}
.navbar nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.navbar nav a.btn-nav-cta { background: var(--primary); color: #fff; margin-left: 14px; }
.navbar nav a.btn-nav-cta:hover { background: var(--primary-dark); }
.navbar .staff-user { color: #98a2bf; margin-right: 10px; font-size: .88rem; font-weight: 500; }
.navbar .staff-user b { color: #fff; }

@media (max-width: 900px) {
  .navbar { flex-wrap: wrap; gap: 10px; padding: 14px 20px; }
  .navbar nav { flex-wrap: wrap; justify-content: center; }
  .navbar nav a { margin-left: 4px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 15% -10%, #1e5cf0 0%, transparent 60%), linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 84px 24px 96px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .4;
  pointer-events: none;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
}
.hero h1 { margin: 0 0 14px; font-size: 2.6rem; line-height: 1.15; position: relative; color: #fff; }
.hero p { margin: 0 auto; max-width: 560px; opacity: .88; font-size: 1.05rem; position: relative; }
.hero .hero-actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero .btn-ghost {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
.hero .btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.hero .hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 46px; flex-wrap: wrap; position: relative; }
.hero .hero-stats div { text-align: center; }
.hero .hero-stats .n { font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero .hero-stats .l { font-size: .78rem; color: #b9c6ef; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* ---------- Hero car marquee (moving gallery) ---------- */
.hero-marquee {
  position: relative;
  margin-top: 46px;
  padding: 14px 0;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
}
.hero-marquee::before, .hero-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.hero-marquee::before { left: 0; background: linear-gradient(90deg, var(--dark), transparent); }
.hero-marquee::after { right: 0; background: linear-gradient(270deg, var(--primary-dark), transparent); }
.hero-marquee-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.hero-marquee:hover .hero-marquee-track { animation-play-state: paused; }
.hero-marquee-track figure {
  margin: 0;
  flex: 0 0 auto;
  width: 190px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  position: relative;
}
.hero-marquee-track img { width: 100%; height: 108px; object-fit: cover; display: block; opacity: .95; }
.hero-marquee-track figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
  color: #fff; font-size: .72rem; font-weight: 700;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 700px) {
  .hero-marquee-track figure { width: 140px; }
  .hero-marquee-track img { height: 82px; }
}

/* ---------- Gallery filter bar ---------- */
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: -12px 0 34px; }
.filter-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.vehicle-card { position: relative; }
.vehicle-card .stock-badge { position: absolute; top: 26px; right: 26px; z-index: 2; }

/* ---------- Driver cards ---------- */
.driver-card { text-align: center; padding: 24px 20px; position: relative; }
.driver-card .avatar-wrap { position: relative; width: 96px; height: 96px; margin: 0 auto 14px; }
.driver-card .avatar-wrap img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--primary-light);
}
.driver-card .avail-dot {
  position: absolute; bottom: 4px; right: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid #fff;
  background: var(--success);
}
.driver-card .avail-dot.busy { background: #d1d5db; }
.driver-card h3 { font-size: 1.02rem; margin: 0 0 4px; }
.driver-card .driver-rating { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; }
.driver-card .price { color: var(--primary); font-weight: 800; font-size: 1.08rem; margin-bottom: 14px; }
.driver-card .price small { color: var(--text-muted); font-weight: 500; font-size: .76rem; }
.driver-card .qr-details { margin-top: 12px; text-align: left; border-top: 1px dashed var(--border); padding-top: 10px; }
.driver-card .qr-details summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--primary); text-align: center; list-style: none; }
.driver-card .qr-details summary::-webkit-details-marker { display: none; }
.driver-card .qr-box { text-align: center; margin-top: 10px; }
.driver-card .qr-box img { border-radius: 8px; border: 1px solid var(--border); padding: 6px; background: #fff; }
.driver-card .qr-box p { margin: 8px 0 0; }

/* ---------- Section titles ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head .eyebrow-sm { color: var(--primary); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.section-head h2 { font-size: 1.85rem; margin: 8px 0 10px; }
.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- Feature / step blocks ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.feature-card p { color: var(--text-muted); font-size: .9rem; margin: 0; }

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-item { text-align: center; padding: 6px 10px; }
.step-item .step-num {
  counter-increment: step;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--dark); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 1rem;
}
.step-item h4 { font-size: .95rem; margin: 0 0 6px; }
.step-item p { color: var(--text-muted); font-size: .85rem; margin: 0; }

@media (max-width: 900px) {
  .feature-grid, .step-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 560px) {
  .feature-grid, .step-grid { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.vehicle-card { padding: 16px; transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vehicle-card img { width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius-sm); background: #dfe4ee; display: block; }
.vehicle-card h3 { margin: 14px 0 4px; font-size: 1.08rem; }
.vehicle-card .price { color: var(--primary); font-weight: 800; font-size: 1.15rem; }
.vehicle-card .price small { color: var(--text-muted); font-weight: 500; font-size: .78rem; }
.vehicle-card .meta { color: var(--text-muted); font-size: .85rem; margin-bottom: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
  font-family: inherit;
  transition: all .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(20,80,214,.28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 4px 14px rgba(20,80,214,.36); }
.btn-secondary { background: #eef1f7; color: var(--text); }
.btn-secondary:hover { background: #e2e7f1; color: var(--text); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(.94); color:#fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.94); color:#fff; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Forms ---------- */
form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .88rem; color: var(--text); }
form input[type=text], form input[type=email], form input[type=tel],
form input[type=password], form input[type=date], form input[type=datetime-local],
form input[type=number], form input[type=file], form select, form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
form textarea { resize: vertical; }
form .hint { color: var(--text-muted); font-size: .8rem; margin-top: 5px; }
form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { form .row-2 { grid-template-columns: 1fr; } }
fieldset { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-top: 18px; background: #fbfcfe; }
legend { font-weight: 800; padding: 0 8px; color: var(--primary-dark); font-size: .95rem; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; background: #fff; }
table th, table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: .88rem; }
table th { background: #f7f9fd; font-weight: 700; color: var(--dark); text-transform: uppercase; font-size: .74rem; letter-spacing: .04em; }
table tr:hover td { background: #fafbfe; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap table { border: none; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .01em; }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-secondary { background: #eef1f5; color: #4b5563; }

/* ---------- Alerts ---------- */
.alert { padding: 13px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .9rem; font-weight: 600; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: #0a5c2a; border-color: #bfe8cd; }
.alert-danger { background: var(--danger-bg); color: #921c17; border-color: #f6c6c3; }
.alert-warning { background: var(--warning-bg); color: #8a4b06; border-color: #f3ddb0; }
.alert-info { background: var(--info-bg); color: #075769; border-color: #b9e8f2; }

/* ---------- Stat boxes (dashboards) ---------- */
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); }
.stat-box .num { font-size: 1.9rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-box .label { color: var(--text-muted); font-size: .82rem; margin-top: 8px; font-weight: 600; }

/* ---------- Staff / admin layout ---------- */
.sidebar-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 62px); }
.sidebar { background: var(--dark); color: #c7cde0; padding: 22px 0; }
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b9c1da;
  padding: 11px 24px;
  font-size: .9rem;
  font-weight: 600;
  border-left: 3px solid transparent;
}
.sidebar a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar a.active { background: rgba(20,80,214,.18); color: #fff; border-left: 3px solid var(--primary); }
.sidebar .role-tag { padding: 0 24px 16px; font-size: .72rem; color: #6ea8fe; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.main-content { padding: 30px; }
.main-content h2 { margin-top: 0; }

/* ---------- Ratings ---------- */
.rating-stars { color: var(--accent); letter-spacing: 2px; font-size: 1rem; }

/* ---------- Footer (public) ---------- */
footer.site-footer {
  background: var(--dark);
  color: #b9c1da;
  margin-top: 60px;
}
footer.site-footer .footer-top {
  max-width: 1140px; margin: 0 auto; padding: 48px 24px 28px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px;
}
footer.site-footer .f-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; }
footer.site-footer .f-brand .logo-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), #4f7dfb); display: flex; align-items: center; justify-content: center; font-size: .85rem; }
footer.site-footer p { font-size: .85rem; line-height: 1.7; color: #9aa4c2; margin: 0; }
footer.site-footer h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 9px; }
footer.site-footer a { color: #9aa4c2; font-size: .87rem; font-weight: 500; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 24px;
  text-align: center;
  font-size: .8rem;
  color: #7c86a8;
}
@media (max-width: 800px) {
  footer.site-footer .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  footer.site-footer .footer-top { grid-template-columns: 1fr; }
}

/* legacy simple footer (staff area) */
footer.staff-footer { text-align: center; padding: 20px; color: var(--text-muted); font-size: .82rem; border-top: 1px solid var(--border); }

/* ---------- Step nav (booking flow) ---------- */
.step-nav { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.step-nav span { background: #eef1f7; padding: 7px 16px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--text-muted); }
.step-nav span.active { background: var(--primary); color: #fff; }

/* ---------- Misc ---------- */
.thumb { width: 100%; max-width: 260px; border-radius: var(--radius-sm); border: 1px solid var(--border); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: #cdd4e4; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #b7c0d8; }
