/* ── Peace Car Deal. Ltd — Brand System ───────────────────── */
:root {
    --bs-primary:        #F5821F;
    --bs-primary-rgb:    245,130,31;
    --bs-dark:           #1A1A1A;
    --bs-dark-rgb:       26,26,26;

    --brand-orange:      #F5821F;
    --brand-orange-hover:#D4700F;
    --brand-orange-light:#FFF3E8;
    --brand-dark:        #1A1A1A;
    --brand-dark-2:      #2C2C2C;
    --brand-white:       #FFFFFF;
    --radius:            10px;
}

/* ── Typography ──────────────────────────────────────────── */
body {
    font-family: 'Century Gothic', 'Futura', 'Avant Garde', Verdana, sans-serif;
    color: var(--brand-dark);
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
    border-bottom: 2px solid #F0F0F0;
    background: #fff !important;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--brand-dark) !important;
    text-decoration: none;
}
.navbar-brand img {
    height: 48px;
    width: auto;
}
.navbar-brand .brand-name { color: var(--brand-dark); }
.navbar-brand .brand-name span { color: var(--brand-orange); }
.nav-link { color: #374151 !important; font-weight: 500; }
.nav-link:hover,
.nav-link.active { color: var(--brand-orange) !important; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary  {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-orange-hover);
    border-color: var(--brand-orange-hover);
    color: #fff !important;
}
.btn-outline-primary {
    color: var(--brand-orange);
    border-color: var(--brand-orange);
}
.btn-outline-primary:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}
.btn-dark { background: var(--brand-dark); border-color: var(--brand-dark); }

/* ── Hero ────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--brand-dark) 60%, var(--brand-dark-2) 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(245,130,31,.18) 0%, transparent 70%);
    pointer-events: none;
}
.hero-section h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.hero-section p  { color: rgba(255,255,255,0.75); font-size: 1.15rem; }

/* ── Section ─────────────────────────────────────────────── */
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ── Vehicle card ────────────────────────────────────────── */
.vehicle-card {
    border: 1px solid #E5E7EB;
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    background: #fff;
    height: 100%;
}
.vehicle-card:hover {
    box-shadow: 0 8px 24px rgba(245,130,31,.12);
    transform: translateY(-3px);
}
.vehicle-card a { text-decoration: none; color: inherit; }
.card-img-top   { height: 200px; object-fit: cover; width: 100%; }
.card-price     { font-weight: 700; font-size: 1.05rem; color: var(--brand-orange); }
.card-price small { font-weight: 400; color: #6B7280; }
.badge-driver { background: #FFF3E8; color: #9A4E00; font-size: .72rem; padding: 3px 9px; border-radius: 20px; font-weight: 500; }
.badge-fuel   { background: #F0FDF4; color: #166534; font-size: .72rem; padding: 3px 9px; border-radius: 20px; font-weight: 500; }

/* ── Auth ────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; background: #F7F8FA; display: flex; align-items: center; }
.auth-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 700; }

/* ── Filter bar ──────────────────────────────────────────── */
.filter-bar { background: #F7F8FA; border-bottom: 1px solid #E5E7EB; padding: 1rem 0; }
.nav-tabs .nav-link { color: #6B7280; border: none; font-weight: 500; padding: .5rem 1.25rem; }
.nav-tabs .nav-link.active {
    color: var(--brand-orange);
    border-bottom: 2px solid var(--brand-orange);
    background: none;
    font-weight: 700;
}

/* ── Stat card ───────────────────────────────────────────── */
.stat-card { border-radius: var(--radius); padding: 1.5rem; background: #fff; border: 1px solid #E5E7EB; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--brand-dark); }
.stat-card .stat-label { font-size: .85rem; color: #6B7280; font-weight: 500; }
.stat-card .stat-icon  { font-size: 2rem; opacity: .15; }

/* ── Booking panel ───────────────────────────────────────── */
.booking-panel { border: 1px solid #E5E7EB; border-radius: var(--radius); padding: 1.75rem; background: #fff; position: sticky; top: 80px; }
.booking-panel .price-big { font-size: 2rem; font-weight: 800; color: var(--brand-orange); }

/* ── Table ───────────────────────────────────────────────── */
.table th { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: #6B7280; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.status-active   { background: #F0FDF4; color: #166534; }
.status-pending  { background: #FFF3E8; color: #9A4E00; }
.status-inactive { background: #F3F4F6; color: #6B7280; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--brand-dark); color: rgba(255,255,255,.6); padding: 3rem 0 2rem; margin-top: 4rem; }
.footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer a:hover { color: var(--brand-orange); }
.footer-brand { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-brand span { color: var(--brand-orange); }
.footer-divider { border-color: rgba(255,255,255,.1); }

/* ── Pagination ──────────────────────────────────────────── */
.page-link { color: var(--brand-orange); }
.page-item.active .page-link { background: var(--brand-orange); border-color: var(--brand-orange); }

/* ── Host / Admin sidebar (old .sidebar class) ───────────── */
.sidebar { background: var(--brand-dark); min-height: 100vh; width: 240px; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.25rem;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(245,130,31,.22);
    color: #fff;
}
.sidebar-link i { font-size: 1.1rem; }

/* ── Utility ─────────────────────────────────────────────── */
.text-brand  { color: var(--brand-orange) !important; }
.bg-brand    { background: var(--brand-orange) !important; }
.rounded-xl  { border-radius: var(--radius) !important; }

/* ── Bootstrap overrides ─────────────────────────────────── */
a { color: var(--brand-orange); }
a:hover { color: var(--brand-orange-hover); }
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 .2rem rgba(245,130,31,.18);
}
.form-check-input:checked {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}
