/* ==========================================================================
   Shahzad Rent a Car — Design System
   Premium "chauffeur / Blacklane" look: dark charcoal + gold accent.
   ========================================================================== */

:root {
    --brand-dark: #0a1628;
    --brand-dark-2: #0f1e35;
    --brand-sidebar: #0a1220;
    --brand-gold: #2563eb;
    --brand-gold-soft: #60a5fa;
    --brand-ink: #16213a;
    --brand-bg: #f4f6fa;
    --brand-line: #e8ecf2;
    --brand-muted: #6b7484;
    --brand-radius: 14px;
    --brand-shadow: 0 10px 30px rgba(15, 20, 32, .08);
    --brand-shadow-lg: 0 24px 60px rgba(15, 20, 32, .14);
}

* { box-sizing: border-box; }

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--brand-ink);
    background: var(--brand-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: "Poppins", "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--brand-ink);
}

a { color: var(--brand-gold); text-decoration: none; }
a:hover { color: #1d4ed8; }

.text-gold { color: var(--brand-gold) !important; }
.bg-gold { background: var(--brand-gold) !important; }
.bg-gold-soft { background: var(--brand-gold-soft) !important; color: #0a1628; }
.text-muted-2 { color: var(--brand-muted) !important; }

/* ------------------------------------------------ Generic components ---- */

.card {
    border: 1px solid var(--brand-line);
    border-radius: var(--brand-radius);
    box-shadow: var(--brand-shadow);
    background: #fff;
}
.card-header {
    background: #fff;
    border-bottom: 1px solid var(--brand-line);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}
.card-header:first-child { border-radius: var(--brand-radius) var(--brand-radius) 0 0; }
.card .card-subtitle { color: var(--brand-muted); font-weight: 400; font-size: .85rem; }

.btn-gold {
    background: var(--brand-gold);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: .6rem 1.2rem;
}
.btn-gold:hover { background: #1d4ed8; color: #fff; }

.btn-outline-gold {
    border: 1.5px solid var(--brand-gold);
    color: var(--brand-gold);
    font-weight: 600;
    border-radius: 10px;
}
.btn-outline-gold:hover { background: var(--brand-gold); color: #fff; }

.btn-dark-soft {
    background: var(--brand-dark);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
}
.btn-dark-soft:hover { background: #232b3e; color: #fff; }

.badge {
    font-weight: 600;
    padding: .4em .65em;
    border-radius: 8px;
    letter-spacing: .02em;
}
.badge.bg-warning, .badge.bg-info, .badge.bg-primary,
.badge.bg-success, .badge.bg-danger, .badge.bg-dark,
.badge.bg-secondary { color: #fff; }

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid var(--brand-line);
    padding: .6rem .8rem;
    font-size: .92rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15);
}
.form-label { font-weight: 600; font-size: .85rem; color: var(--brand-dark); }

.table > :not(caption) > * > * {
    padding: .85rem .9rem;
    vertical-align: middle;
}
.table thead th {
    background: #f7f9fc;
    color: var(--brand-muted);
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .06em;
    font-weight: 700;
    border-bottom: 1px solid var(--brand-line);
}
.table tbody tr:hover { background: #fbfcfe; }

.stat-card { padding: 1.4rem 1.5rem; }
.stat-card .stat-icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 12px;
    font-size: 1.25rem;
    color: #fff;
}
.stat-card .stat-label {
    font-size: .78rem;
    color: var(--brand-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.stat-card .stat-value { font-size: 1.65rem; font-weight: 700; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--brand-muted); }
.empty-state i { font-size: 2.5rem; opacity: .4; }

.page-title { font-size: 1.5rem; font-weight: 700; margin: 0; }
.breadcrumb { font-size: .82rem; margin: 0; }

/* Filters row */
.filters .form-control, .filters .form-select { min-width: 150px; }

/* Pagination */
.pagination .page-link { color: var(--brand-dark); border-color: var(--brand-line); }
.pagination .page-item.active .page-link { background: var(--brand-gold); border-color: var(--brand-gold); color: #fff; }

/* ------------------------------------------------ Admin layout ---------- */

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 264px;
    background: linear-gradient(180deg, var(--brand-sidebar) 0%, #0b0f18 100%);
    color: #b9c1d0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1040;
    overflow-y: auto;
    transition: transform .25s ease;
}
.admin-brand {
    display: flex; align-items: center; gap: .7rem;
    padding: 1.2rem 1.35rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: #fff;
}
.admin-brand .logo-badge {
    width: 38px; height: 38px;
    background: var(--brand-gold);
    border-radius: 10px;
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 1.1rem;
}
.admin-brand .brand-name { font-family: "Poppins", sans-serif; font-weight: 700; font-size: .98rem; line-height: 1.1; }
.admin-brand .brand-sub { font-size: .68rem; color: #8a93a5; }

.admin-nav { padding: 1rem .8rem; }
.admin-nav .nav-section {
    padding: .4rem .65rem .35rem;
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #6d7688;
    font-weight: 700;
}
.admin-nav .nav-link {
    display: flex; align-items: center; gap: .75rem;
    color: #b9c1d0;
    padding: .62rem .9rem;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 500;
    margin-bottom: 2px;
}
.admin-nav .nav-link i { width: 20px; text-align: center; font-size: 1.05rem; }
.admin-nav .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav .nav-link.active {
    background: linear-gradient(90deg, rgba(37,99,235,.22) 0%, rgba(37,99,235,.06) 100%);
    color: var(--brand-gold-soft);
    box-shadow: inset 3px 0 0 var(--brand-gold);
}

.admin-main { flex: 1; margin-left: 264px; display: flex; flex-direction: column; }
.admin-topbar {
    height: 68px;
    background: #fff;
    border-bottom: 1px solid var(--brand-line);
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0 1.6rem;
    position: sticky; top: 0; z-index: 1030;
}
.admin-content { padding: 1.6rem; flex: 1; }

.admin-toggle-nav { display: none; }

@media (max-width: 992px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,.3); }
    .admin-main { margin-left: 0; }
    .admin-toggle-nav { display: inline-flex; }
    .admin-sidebar-backdrop {
        display: none; position: fixed; inset: 0;
        background: rgba(0,0,0,.4); z-index: 1035;
    }
    .admin-sidebar-backdrop.show { display: block; }
}

.avatar-circle {
    width: 36px; height: 36px;
    background: var(--brand-gold);
    color: #fff; font-weight: 700;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: .85rem;
    flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: .72rem; }

/* ------------------------------------------------ Public layout --------- */

.site-header {
    background: linear-gradient(180deg, rgba(15,20,32,.92) 0%, rgba(15,20,32,.75) 100%);
    position: sticky; top: 0; z-index: 1030;
    backdrop-filter: blur(6px);
}
.site-header .navbar { padding-top: .5rem; padding-bottom: .5rem; }
.site-header .navbar-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: .95rem; }
.site-header .nav-link { color: #cdd4e0 !important; font-weight: 500; padding: .5rem .85rem !important; font-size: .88rem; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--brand-gold-soft) !important; }
.site-header .btn-gold { font-size: .85rem; padding: .5rem 1rem; }

.site-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 2rem 0 1.8rem;
    min-height: auto;
    display: flex;
    align-items: center;
}

/* Background image slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    animation: heroSlideFade 20s infinite;
    filter: saturate(1.05) brightness(.85);
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }

@keyframes heroSlideFade {
    0%   { opacity: 0; transform: scale(1.08); }
    4%   { opacity: 1; transform: scale(1.0); }
    22%  { opacity: 1; transform: scale(1.0); }
    28%  { opacity: 0; transform: scale(1.0); }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { animation: none; opacity: 0; }
    .hero-slide:first-child { opacity: 1; }
}

/* Dark + gold gradient overlay so text always stays readable */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(1200px 600px at 80% 10%, rgba(37,99,235,.20), transparent 60%),
        linear-gradient(115deg, rgba(10,13,22,.94) 0%, rgba(15,20,32,.86) 45%, rgba(22,30,48,.72) 100%);
}

.site-hero .container { position: relative; z-index: 2; }

.hero-feature-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem 1.3rem;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: .9rem !important;
    margin-top: 1rem !important;
}
.hero-feature-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #fff;
    font-size: .72rem;
}
.hero-feature-item strong { font-size: .75rem; }
.hero-feature-item small { color: #9aa4b8; font-weight: 400; font-size: .68rem; }
.hero-feature-icon {
    width: 32px; height: 32px; flex: 0 0 32px;
    border-radius: 50%;
    background: rgba(37,99,235,.18);
    border: 1px solid rgba(96,165,250,.4);
    color: var(--brand-gold-soft);
    display: grid; place-items: center;
    font-size: .85rem;
}

.stats-bar {
    background: var(--brand-dark);
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
}
.stats-icon {
    width: 38px; height: 38px; flex: 0 0 38px;
    border-radius: 50%;
    background: rgba(37,99,235,.16);
    border: 1px solid rgba(96,165,250,.4);
    color: var(--brand-gold-soft);
    display: grid; place-items: center;
    font-size: 1rem;
}
.stats-number { color: #fff; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.stats-label { color: #9aa4b8; font-size: .72rem; }

.site-hero .hero-tag {
    display: inline-block;
    background: rgba(37,99,235,.16);
    border: 1px solid rgba(37,99,235,.5);
    color: var(--brand-gold-soft);
    padding: .28rem .75rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.site-hero h1 { color: #fff; font-size: 2rem; line-height: 1.18; margin-top: .6rem !important; }
.site-hero p.lead { color: #c4cbd9; font-size: .92rem; margin: .7rem 0 1rem !important; }
.site-hero .btn-lg { padding: .55rem 1.1rem; font-size: .9rem; }

.page-hero {
    background: linear-gradient(135deg, #0f1420 0%, #1e273c 100%);
    color: #fff;
    padding: 3.2rem 0 2.8rem;
}
.page-hero h1 { color: #fff; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #6d7688; }
.page-hero .breadcrumb a { color: var(--brand-gold-soft); }
.page-hero .breadcrumb .active { color: #9aa4b8; }

.hero-tag-light {
    display: inline-block;
    background: rgba(37,99,235,.1);
    border: 1px solid rgba(37,99,235,.25);
    color: #1d4ed8;
    padding: .3rem .85rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.section-title { position: relative; display: inline-block; }
.section-title::after {
    content: ""; display: block; width: 52px; height: 3px;
    background: var(--brand-gold); border-radius: 3px; margin-top: .6rem;
}

.feature-card, .service-card, .review-card {
    border: 1px solid var(--brand-line);
    border-radius: var(--brand-radius);
    background: #fff;
    box-shadow: var(--brand-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover, .service-card:hover, .review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--brand-shadow-lg);
}
.feature-card .feature-icon, .service-card .service-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--brand-dark) 0%, #2b3a55 100%);
    color: var(--brand-gold-soft);
    display: grid; place-items: center;
    border-radius: 14px;
    font-size: 1.5rem;
}

.vehicle-photo { height: 120px; border-radius: var(--brand-radius) var(--brand-radius) 0 0; overflow: hidden; background: linear-gradient(135deg, #1e2533 0%, #2b3a55 100%); }
.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-photo.placeholder { display: grid; place-items: center; color: #cfd6e5; text-align: center; }
.vehicle-photo.placeholder i { font-size: 2.4rem; color: var(--brand-gold-soft); }
.vehicle-photo.placeholder .ph-name { font-family: "Poppins", sans-serif; font-weight: 600; font-size: .85rem; margin-top: .4rem; }
.vehicle-card .vehicle-price { color: var(--brand-gold); font-weight: 700; }

.booking-form-wrap {
    background: rgba(10,16,28,.72);
    backdrop-filter: blur(10px);
    border-radius: var(--brand-radius);
    box-shadow: 0 30px 70px rgba(0,0,0,.45);
    padding: .95rem 1.1rem;
    border: 1px solid rgba(255,255,255,.14);
    font-size: .82rem;
    color: #fff;
}
.booking-form-wrap h4 { font-size: .98rem; color: #fff; }
.booking-form-wrap p.text-muted-2 { color: #9aa4b8 !important; font-size: .74rem; }
.booking-form-wrap .form-label { font-size: .72rem; margin-bottom: .2rem; font-weight: 600; color: #cdd4e0; }
.booking-form-wrap .form-control,
.booking-form-wrap .form-select {
    font-size: .78rem;
    padding: .35rem .6rem;
    min-height: unset;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
}
.booking-form-wrap .form-control::placeholder { color: #7c869c; }
.booking-form-wrap .form-control:focus,
.booking-form-wrap .form-select:focus {
    background: rgba(255,255,255,.09);
    border-color: var(--brand-gold-soft);
    color: #fff;
    box-shadow: 0 0 0 .15rem rgba(37,99,235,.2);
}
.booking-form-wrap .form-select option { color: #16213a; }
.booking-form-wrap .row.g-2 > * { margin-top: .45rem; }
.booking-form-wrap .row.g-2 > *:nth-child(-n+2) { margin-top: 0; }
.booking-form-wrap .btn { font-size: .8rem; padding: .4rem 1rem; }
.booking-form-wrap small.text-muted-2 { color: #9aa4b8 !important; font-size: .68rem; }

.site-footer { background: #0a0e16; color: #9aa4b8; padding: 3.5rem 0 1.4rem; }
.site-footer h5 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer a { color: #9aa4b8; }
.site-footer a:hover { color: var(--brand-gold-soft); }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.2rem; font-size: .82rem; }

.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 2000;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 1.7rem;
    display: grid; place-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.whatsapp-float:hover { color: #fff; transform: scale(1.05); }

/* Timeline (booking status) */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 1rem; position: relative; padding-bottom: 1.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: ""; position: absolute; left: 11px; top: 26px; width: 2px; height: 100%;
    background: var(--brand-line);
}
.timeline li:last-child::before { display: none; }
.timeline .dot {
    width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; flex-shrink: 0;
    background: #e3e8f0; color: #fff; font-size: .7rem;
    z-index: 1;
}
.timeline li.done .dot { background: var(--brand-gold); }
.timeline li.done::before { background: var(--brand-gold); }
.timeline li.current .dot { background: var(--brand-dark); box-shadow: 0 0 0 5px rgba(30,37,51,.12); }
.timeline li.muted .dot { background: #ccd4e0; }

/* Invoices (print/PDF) */
.invoice-sheet { background: #fff; border: 1px solid var(--brand-line); border-radius: 12px; padding: 2.2rem; }
.invoice-brand { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--brand-dark); }
.invoice-meta td { padding: .35rem .5rem; }
.invoice-totals td { padding: .5rem .75rem; }

/* Toast / flash */
.flash { border-radius: 12px; }

.avatar-img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }

.modal-content { border-radius: var(--brand-radius); }