/* Auto Exec Services — design system */

:root {
  --black:      #0A0A0A;
  --graphite:   #1F1F1F;
  --graphite-2: #2A2A2A;
  --border:     #2E2E2E;
  --orange:     #FF6B1A;
  --orange-2:   #E85A0D;
  --blue:       #3B82F6;
  --text:       #F5F5F5;
  --muted:      #A1A1AA;
  --radius:     10px;
  --shadow:     0 4px 20px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--black);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header */
.site-header {
  background: var(--black);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--orange);
  color: #000;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.logo-text em { color: var(--muted); font-style: normal; font-weight: 400; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--muted); font-size: 15px; }
.nav-link:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: var(--orange-2); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* Main */
.site-main { flex: 1; }

/* Hero */
.hero { padding: 100px 0 80px; text-align: center; }
.hero-title {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero-title .accent { color: var(--orange); }
.hero-subtitle {
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Features */
.features { padding: 60px 0 100px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* CTA */
.cta { padding: 60px 0 100px; text-align: center; }
.cta h2 { font-size: 32px; margin-bottom: 24px; font-weight: 700; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.site-footer a { color: var(--orange); }

/* Mobile */
@media (max-width: 640px) {
  .hero { padding: 60px 0 40px; }
  .hero-title { font-size: 36px; }
  .nav-link { display: none; }
}

/* ---------- Auth / Login ---------- */

.container-narrow {
  max-width: 460px;
  margin: 0 auto;
  padding: 0 24px;
}

.auth-section {
  padding: 80px 0 100px;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.auth-card {
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  width: 100%;
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.auth-hint {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-hint strong { color: var(--text); }

.form-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--orange); }
.form-input.code-input {
  font-size: 22px;
  letter-spacing: 8px;
  text-align: center;
  font-weight: 700;
}

.btn-block {
  width: 100%;
  display: block;
  margin-bottom: 10px;
}

.form-status {
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
  text-align: center;
}
.form-status.error { color: #F87171; }
.form-status.success { color: #4ADE80; }/* ---------- Dashboard ---------- */

.dashboard { padding: 40px 0 100px; }

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.dashboard-subtitle { color: var(--muted); font-size: 14px; }

.panel {
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.panel-title { font-size: 18px; font-weight: 700; }

.muted { color: var(--muted); font-size: 14px; }

/* Add vehicle form */
.add-vehicle-form {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Vehicles list */
.vehicle-list { display: flex; flex-direction: column; gap: 10px; }
.vehicle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.vehicle-title { font-weight: 600; font-size: 16px; }
.vehicle-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.vehicle-meta .plate {
  background: var(--graphite-2);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, Menlo, monospace;
  color: var(--text);
}
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---------- Booking page + list ---------- */

.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.back-link:hover { color: var(--text); }

.form-input[type="datetime-local"] { color-scheme: dark; }
.form-input select, select.form-input {
  background: var(--black);
  color: var(--text);
}
textarea.form-input { resize: vertical; font-family: inherit; }

.booking-list { display: flex; flex-direction: column; gap: 10px; }
.booking-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  flex-wrap: wrap;
}
.booking-title { font-weight: 600; font-size: 16px; }
.booking-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.booking-notes {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.status-requested   { background: #3F2A0F; color: #FBBF24; }
.status-assigned    { background: #1E3A8A; color: #93C5FD; }
.status-confirmed   { background: #14532D; color: #86EFAC; }
.status-in_progress { background: #7C2D12; color: #FDBA74; }
.status-completed   { background: #1F2937; color: #A1A1AA; }
.status-cancelled   { background: #450A0A; color: #FCA5A5; }

/* ---------- Booking page + list ---------- */

.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.back-link:hover { color: var(--text); }

.form-input[type="datetime-local"] { color-scheme: dark; }
select.form-input {
  background: var(--black);
  color: var(--text);
}
textarea.form-input { resize: vertical; font-family: inherit; }

.booking-list { display: flex; flex-direction: column; gap: 10px; }
.booking-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  flex-wrap: wrap;
}
.booking-title { font-weight: 600; font-size: 16px; }
.booking-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.booking-notes {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.status-requested   { background: #3F2A0F; color: #FBBF24; }
.status-assigned    { background: #1E3A8A; color: #93C5FD; }
.status-confirmed   { background: #14532D; color: #86EFAC; }
.status-in_progress { background: #7C2D12; color: #FDBA74; }
.status-completed   { background: #1F2937; color: #A1A1AA; }
.status-cancelled   { background: #450A0A; color: #FCA5A5; }/* ---------- Booking page + list ---------- */

.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.back-link:hover { color: var(--text); }

.form-input[type="datetime-local"] { color-scheme: dark; }
select.form-input {
  background: var(--black);
  color: var(--text);
}
textarea.form-input { resize: vertical; font-family: inherit; }

.booking-list { display: flex; flex-direction: column; gap: 10px; }
.booking-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  flex-wrap: wrap;
}
.booking-title { font-weight: 600; font-size: 16px; }
.booking-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.booking-notes {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.status-requested   { background: #3F2A0F; color: #FBBF24; }
.status-assigned    { background: #1E3A8A; color: #93C5FD; }
.status-confirmed   { background: #14532D; color: #86EFAC; }
.status-in_progress { background: #7C2D12; color: #FDBA74; }
.status-completed   { background: #1F2937; color: #A1A1AA; }
.status-cancelled   { background: #450A0A; color: #FCA5A5; }/* ---------- Admin ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.stat-card {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-num { font-size: 28px; font-weight: 800; color: var(--orange); }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.stat-requested .stat-num { color: #FBBF24; }
.stat-assigned .stat-num  { color: #93C5FD; }
.stat-completed .stat-num { color: #86EFAC; }

.filter-row { display: flex; align-items: center; }
.filter-select {
  display: inline-block;
  width: auto;
  margin-bottom: 0;
  padding: 6px 12px;
  font-size: 14px;
}

.admin-booking-card {
  align-items: stretch;
  flex-direction: row;
}
.admin-booking-info { flex: 1; min-width: 240px; }
.admin-booking-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 200px;
}
.admin-row { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.admin-row .form-label { margin-bottom: 0; font-size: 11px; }
.admin-row .form-input { margin-bottom: 0; padding: 6px 10px; font-size: 13px; }
.admin-booking-actions .btn-sm { align-self: flex-end; }

@media (max-width: 720px) {
  .admin-booking-card { flex-direction: column; }
  .admin-booking-actions { align-items: stretch; }
}


/* ---------- Garage portal ---------- */

#garage-stats .stat-assigned .stat-num { color: #93C5FD; }
#garage-stats .stat-requested .stat-num { color: #FDBA74; }
#garage-stats .stat-completed .stat-num { color: #86EFAC; }