/* ==========================================================================
   Transport Manager Customer Portal - Professional Theme
   A modern, accessible design system for transport booking
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root{
  --font-sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  /* surfaces / ink — light */
  --bg:#F6F5F9;            --surface:#FFFFFF;       --surface-2:#F1EFF6;
  --surface-3:#FAF9FC;     --line:#E7E3F0;          --line-2:#EFEDF5;
  --ink:#181522;          --ink-2:#5B5670;         --ink-3:#928CA6;
  --on-primary:#FFFFFF;

  /* primary family (Indigo) */
  --primary:#512BD4;       --primary-hover:#4322B4; --primary-press:#371C96;
  --primary-deep:#2B0B98;  --primary-tint:#ECE6FB;  --primary-tint-2:#E0D6FA;
  --primary-ink:#3C1FA6;   /* AA text-on-tint */
  --accent:#FF5C8A;        --accent-ink:#C42459;    --accent-tint:#FFE3EC;

  /* status (AA on surface) */
  --ok:#0F7A47;  --ok-bg:#D8F3E4;  --ok-ink:#0B5C36;
  --warn:#8A4A00;--warn-bg:#FCEBCF;--warn-ink:#7A4100;
  --err:#B11E1E; --err-bg:#FBE0E0; --err-ink:#8B1616;
  --info:#1F5AC2;--info-bg:#DEE8FB;--info-ink:#1A49A0;

  --ring:var(--primary);
  --shadow-1:0 1px 2px rgba(24,21,34,.05),0 1px 1px rgba(24,21,34,.04);
  --shadow-2:0 4px 14px -4px rgba(24,21,34,.12),0 2px 6px -2px rgba(24,21,34,.08);
  --shadow-3:0 18px 48px -12px rgba(24,21,34,.22),0 6px 16px -8px rgba(24,21,34,.12);
  --shadow-primary:0 10px 30px -8px color-mix(in oklab,var(--primary) 55%,transparent);

  --r-sm:7px; --r-md:10px; --r-lg:14px; --r-xl:20px; --r-2xl:26px; --r-full:999px;

  /* ── PRESERVED NON-COLOUR SCALES (typography / spacing / motion / z-index) ── */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

[data-theme="dark"]{
  --bg:#0C0A12;          --surface:#161320;     --surface-2:#100D1A;
  --surface-3:#1C1828;   --line:#2C2740;        --line-2:#241F35;
  --ink:#ECEAF4;         --ink-2:#A9A3C0;       --ink-3:#726C8A;
  --on-primary:#1A1033;
  --primary:#C4B2FF;     --primary-hover:#D6C9FF;--primary-press:#B6A1FF;
  --primary-deep:#8E72F0;--primary-tint:#2A1D5C;--primary-tint-2:#34246E;
  --primary-ink:#CDBDFF;
  --accent:#FF7FA5;      --accent-ink:#FFB9CE;  --accent-tint:#43182A;
  --ok:#46D58A;  --ok-bg:#103527;  --ok-ink:#7DE8B0;
  --warn:#F4B24E;--warn-bg:#3A2A10;--warn-ink:#FBD08A;
  --err:#F77; --err-bg:#3A1717;--err-ink:#FBA9A9;
  --info:#71A6F4;--info-bg:#152743;--info-ink:#A6C8FB;
  --ring:var(--primary);
  --shadow-1:0 1px 2px rgba(0,0,0,.4);
  --shadow-2:0 6px 18px -6px rgba(0,0,0,.55);
  --shadow-3:0 22px 52px -14px rgba(0,0,0,.7);
  --shadow-primary:0 12px 34px -10px color-mix(in oklab,var(--primary) 35%,transparent);
}

/* ==========================================================================
   Google Material Icons - Local Font
   ========================================================================== */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/MaterialIcons-Regular.woff2') format('woff2');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--ink);
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-4);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--ink);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

p {
    margin: 0 0 var(--space-4);
    color: var(--ink-2);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-deep);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-tint);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    color: var(--on-primary);
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-deep);
    border-color: var(--primary-deep);
    color: var(--on-primary);
    text-decoration: none;
}

.btn-secondary {
    color: var(--ink);
    background-color: var(--surface);
    border-color: var(--line-2);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--surface-2);
    border-color: var(--ink-3);
    color: var(--ink);
    text-decoration: none;
}

.btn-success {
    color: var(--on-primary);
    background-color: var(--ok);
    border-color: var(--ok);
}

.btn-success:hover:not(:disabled) {
    background-color: #047857;
    border-color: #047857;
}

.btn-danger {
    color: var(--on-primary);
    background-color: var(--err);
    border-color: var(--err);
}

.btn-danger:hover:not(:disabled) {
    background-color: #B91C1C;
    border-color: #B91C1C;
}

.btn-ghost {
    color: var(--ink-2);
    background-color: transparent;
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background-color: var(--surface-2);
    color: var(--ink);
}

.btn-link {
    color: var(--primary);
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-base);
}

.btn-block {
    width: 100%;
}

/* Shared header icon-button — used by the notifications bell, theme toggle, and
   any future header action. Scoped components keep ONLY their specifics; the base
   look lives here so the utility is reusable across the header cluster. */
.header-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .13s, color .13s, border-color .13s;
}

.header-icon-btn:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.header-icon-btn .material-icons {
    font-size: 18px;
}

.header-icon-btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--ink);
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: inherit;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--ink);
    background-color: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-tint);
}

.form-control::placeholder {
    color: var(--ink-3);
}

.form-control:disabled {
    background-color: var(--surface-2);
    cursor: not-allowed;
}

.form-control.is-invalid {
    border-color: var(--err);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px var(--err-bg);
}

.form-text {
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--ink-2);
}

.form-error {
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--err);
}

/* Select */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-3) center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: var(--space-10);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 1.5rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-check-label {
    font-size: var(--font-size-sm);
    color: var(--ink-2);
    cursor: pointer;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-1);
}

.card-header {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--line);
}

.card-header h3,
.card-header h4 {
    margin: 0;
}

.card-body {
    padding: var(--space-5);
}

.card-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--line);
    background-color: var(--bg);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* ==========================================================================
   Status Badges
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    border-radius: var(--r-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-pending {
    color: #92400E;
    background-color: var(--warn-bg);
}

.badge-confirmed {
    color: #065F46;
    background-color: var(--ok-bg);
}

.badge-inprogress {
    color: #1E40AF;
    background-color: #DBEAFE;
}

.badge-completed {
    color: #065F46;
    background-color: var(--ok-bg);
}

.badge-cancelled {
    color: #991B1B;
    background-color: var(--err-bg);
}

.badge-info {
    color: #075985;
    background-color: var(--info-bg);
}

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--r-lg);
    font-size: var(--font-size-sm);
}

.alert-icon {
    flex-shrink: 0;
}

.alert-success {
    color: #065F46;
    background-color: var(--ok-bg);
}

.alert-warning {
    color: #92400E;
    background-color: var(--warn-bg);
}

.alert-error {
    color: #991B1B;
    background-color: var(--err-bg);
}

.alert-info {
    color: #075985;
    background-color: var(--info-bg);
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.table th,
.table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.table th {
    font-weight: var(--font-weight-medium);
    color: var(--ink-2);
    background-color: var(--bg);
    text-transform: uppercase;
    font-size: var(--font-size-xs);
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background-color: var(--bg);
}

/* ==========================================================================
   Loading & Spinners
   ========================================================================== */
.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--line);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

.spinner-lg {
    width: 3rem;
    height: 3rem;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    gap: var(--space-4);
}

.loading-text {
    color: var(--ink-2);
    font-size: var(--font-size-sm);
}

/* ==========================================================================
   Empty States
   ========================================================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-6);
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--ink-3);
    margin-bottom: var(--space-4);
}

.empty-state-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--ink);
    margin-bottom: var(--space-2);
}

.empty-state-description {
    color: var(--ink-2);
    max-width: 24rem;
    margin-bottom: var(--space-6);
}

/* ==========================================================================
   Validation Styles (Blazor)
   ========================================================================== */
.valid.modified:not([type=checkbox]) {
    border-color: var(--ok);
}

.invalid {
    border-color: var(--err);
}

.validation-message {
    color: var(--err);
    font-size: var(--font-size-sm);
    margin-top: var(--space-1);
}

/* ==========================================================================
   Blazor Error Boundary
   ========================================================================== */
.blazor-error-boundary {
    background: var(--err);
    padding: var(--space-4);
    color: white;
    border-radius: var(--r-lg);
}

.blazor-error-boundary::after {
    content: "An error has occurred. Please refresh the page.";
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    background: var(--err);
    color: white;
    text-align: center;
    z-index: var(--z-fixed);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: var(--space-4);
}

/* ==========================================================================
   Map Marker Styles for Leaflet
   ========================================================================== */
.vehicle-marker {
    background: transparent !important;
    border: none !important;
}

.vehicle-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform var(--transition-base);
}

.marker-pin {
    width: 30px;
    height: 42px;
    position: relative;
}

.marker-pin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.marker-pin.pickup::before {
    background: var(--ok);
}

.marker-pin.destination::before {
    background: var(--err);
}

.marker-pin span {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xs);
    color: white;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.mono { font-family: var(--font-mono); font-feature-settings:"tnum" 1; }
.tnum { font-variant-numeric: tabular-nums; }

/* The redesign uses OUTLINE icons app-wide (the design's stroke icons read lighter
   than filled). Material Icons Outlined shares the same ligature names, so overriding
   the font-family flips every existing <span class="material-icons">name</span> to the
   outline glyph with no markup change. (Loaded in App.razor.) */
.material-icons { font-family: 'Material Icons Outlined'; }

/* ── Shared leading-icon field pattern (GLOBAL, not scoped) ──────────────────
   Auth pages + Create-booking render raw framework <InputText class="input-control">
   inside a hand-written <div class="input-wrapper has-icon"><span class="input-icon">.
   The padding-left that clears the leading icon MUST live here in global CSS: a
   page's scoped rule (`.input-wrapper.has-icon .input-control`) is rewritten to
   `… .input-control[b-page]`, but the <InputText> input is a child component and
   never receives the page's scope attribute, so the scoped rule never matches and
   the icon overlaps the text. A global, unscoped rule matches the real DOM by class
   (specificity 0,3,0 beats the scoped base) and fixes login/create-booking/etc. */
.input-wrapper.has-icon .input-control { padding-left: 40px; }

/* ── Sidebar nav + mobile tab bar (GLOBAL, anchored to .sidebar / .tabbar) ───
   Same scoped-CSS boundary problem: .nav-cta / .nav-link / .tab-item / .tab-fab
   sit on framework <NavLink>-rendered <a> elements, which never receive the
   NavMenu/MobileTabBar Blazor scope attribute — so those components' scoped rules
   silently never match (the Book CTA rendered as a plain link, nav pills missing).
   Defined globally here so the nav reliably gets its filled-CTA + active-pill look. */
.sidebar .nav-cta{display:flex;align-items:center;justify-content:center;gap:var(--space-2);padding:11px 14px;margin-bottom:var(--space-3);border-radius:var(--r-md);font-size:14px;font-weight:var(--font-weight-semibold);color:var(--on-primary);background:linear-gradient(140deg,var(--primary),var(--primary-deep));text-decoration:none;transition:filter .13s,box-shadow .13s;box-shadow:var(--shadow-primary);}
.sidebar .nav-cta:hover{filter:brightness(1.05);color:var(--on-primary);text-decoration:none;}
.sidebar .nav-cta .material-icons{font-size:19px;}
.sidebar .nav-cta:focus-visible{outline:2px solid var(--ring);outline-offset:2px;}
.sidebar .nav-link{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:var(--r-md);font-size:13.5px;font-weight:500;color:var(--ink-2);text-decoration:none;transition:.13s;position:relative;}
.sidebar .nav-link .material-icons{font-size:18px;flex-shrink:0;}
.sidebar .nav-link:hover{background:var(--surface-2);color:var(--ink);text-decoration:none;}
.sidebar .nav-link.active{background:var(--primary-tint);color:var(--primary-ink);font-weight:600;}
[data-theme="dark"] .sidebar .nav-link.active{color:var(--primary);}
.sidebar .nav-link.active::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:18px;border-radius:0 3px 3px 0;background:var(--primary);}
.sidebar .nav-link:focus-visible{outline:2px solid var(--ring);outline-offset:2px;}
.sidebar .nav-badge{margin-left:auto;min-width:18px;height:18px;padding:0 6px;border-radius:var(--r-full);background:var(--primary);color:var(--on-primary);font-size:11px;font-weight:700;font-family:var(--font-mono);display:inline-flex;align-items:center;justify-content:center;}
.tabbar .tab-item{display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:transparent;font-size:10px;font-weight:600;color:var(--ink-3);text-decoration:none;padding:2px 0;}
.tabbar .tab-item .material-icons{font-size:22px;}
.tabbar .tab-item.active{color:var(--primary-ink);}
[data-theme="dark"] .tabbar .tab-item.active{color:var(--primary);}
.tabbar .tab-item:focus-visible{outline:2px solid var(--ring);outline-offset:2px;border-radius:8px;}
.tabbar .tab-fab{justify-self:center;width:54px;height:54px;border-radius:50%;border:0;background:var(--primary);color:var(--on-primary);display:grid;place-items:center;box-shadow:var(--shadow-primary);margin-top:-22px;text-decoration:none;}
.tabbar .tab-fab .material-icons{font-size:24px;}
.tabbar .tab-fab:focus-visible{outline:2px solid var(--ring);outline-offset:2px;}

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--ok) !important; }
.text-warning { color: var(--warn) !important; }
.text-error { color: var(--err) !important; }
.text-muted { color: var(--ink-3) !important; }

.text-sm { font-size: var(--font-size-sm) !important; }
.text-lg { font-size: var(--font-size-lg) !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.font-medium { font-weight: var(--font-weight-medium) !important; }
.font-semibold { font-weight: var(--font-weight-semibold) !important; }
.font-bold { font-weight: var(--font-weight-bold) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }

.p-4 { padding: var(--space-4) !important; }
.p-6 { padding: var(--space-6) !important; }
.px-4 { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
.py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }

.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-4 { gap: var(--space-4) !important; }

.hidden { display: none !important; }
.block { display: block !important; }

.rounded { border-radius: var(--r-lg) !important; }
.rounded-xl { border-radius: var(--r-xl) !important; }
.border { border: 1px solid var(--line) !important; }

.shadow-sm { box-shadow: var(--shadow-1) !important; }
.shadow-md { box-shadow: var(--shadow-2) !important; }
.shadow-lg { box-shadow: var(--shadow-2) !important; }

/* ==========================================================================
   Content Area
   ========================================================================== */
.content {
    padding: var(--space-4);
}

@media (min-width: 641px) {
    .content {
        padding: var(--space-6);
    }
}

h1:focus {
    outline: none;
}

/* ==========================================================================
   Page Header Component
   ========================================================================== */
.page-header {
    margin-bottom: var(--space-6);
}

.page-header-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--ink);
    margin: 0;
}

.page-header-subtitle {
    color: var(--ink-2);
    margin-top: var(--space-1);
}

/* ==========================================================================
   Stat Cards (Dashboard)
   ========================================================================== */
.stat-card {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: var(--space-5);
    border: 1px solid var(--line);
}

.stat-card-label {
    font-size: var(--font-size-sm);
    color: var(--ink-2);
    margin-bottom: var(--space-1);
}

.stat-card-value {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--ink);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card-icon.primary {
    background: var(--primary-tint);
    color: var(--primary);
}

.stat-card-icon.success {
    background: var(--ok-bg);
    color: var(--ok);
}

.stat-card-icon.warning {
    background: var(--warn-bg);
    color: var(--warn);
}

.stat-card-icon.info {
    background: var(--info-bg);
    color: var(--info);
}

/* ==========================================================================
   Booking Cards
   ========================================================================== */
.booking-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: var(--space-5);
    transition: box-shadow var(--transition-base);
}

.booking-card:hover {
    box-shadow: var(--shadow-2);
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.booking-reference {
    font-weight: var(--font-weight-semibold);
    color: var(--ink);
}

.booking-route {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg);
    border-radius: var(--r-lg);
    margin-bottom: var(--space-4);
}

.booking-route-point {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.route-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.route-dot.pickup {
    background: var(--ok);
}

.route-dot.destination {
    background: var(--err);
}

.route-arrow {
    color: var(--ink-3);
}

.booking-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--ink-2);
}

.booking-detail {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.booking-detail .material-icons {
    font-size: 18px;
    color: var(--ink-3);
}

/* ==========================================================================
   Quick Actions
   ========================================================================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-4);
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    text-decoration: none;
    color: var(--ink);
    transition: all var(--transition-base);
}

.quick-action-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-2);
    text-decoration: none;
    color: var(--ink);
}

.quick-action-btn .material-icons {
    font-size: 32px;
    color: var(--primary);
}

.quick-action-btn span:last-child {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}
