@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette (per rules.md) */
    --primary: #E31837; /* Solid Red CTA */
    --primary-hover: #C2102E;
    --primary-light: #FFF1F2;
    --secondary: #111111; /* Dark Accent/Black */
    --dark: #000000;      /* Pitch Black */
    --bg-main: #FFFFFF;   /* Pure White */
    --bg-sec: #F8F9FA;    /* Light Gray */
    --border-color: #EAEAEA;
    --success: #25D366;   /* WhatsApp Green */
    --warning: #E5A93D;   /* Gold Accent */
    --text-main: #111111;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    
    /* Layout Tokens */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    
    /* Transitions */
    --transition: all 0.2s ease-in-out;
}

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

html, body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex !important;
    flex-direction: column !important;
}

/* Container */
.container {
    max-width: 1280px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

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

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

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white) !important;
}

.btn-secondary:hover {
    background-color: #222;
}

.btn-outline {
    background-color: var(--white);
    color: var(--text-muted);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-sec);
    color: var(--text-main);
    border-color: var(--text-muted);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-light);
}

.btn-danger {
    background-color: var(--primary);
    color: var(--white);
}

.btn-danger:hover {
    background-color: var(--primary-hover);
}

.btn-whatsapp-pill {
    background-color: var(--success);
    color: var(--white) !important;
    border-radius: 9999px;
    padding: 0.45rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-pill:hover {
    background-color: #128C7E;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* Navbar */
.navbar-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.navbar-brand span {
    color: var(--primary);
}

.navbar-location {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.75rem;
    border-left: 1px solid var(--border-color);
    padding-left: 0.75rem;
}

.navbar-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.navbar-link {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.navbar-link:hover, .navbar-link.active {
    color: var(--primary);
}

/* Bilah Filter (Filter Bar) */
.filter-bar {
    background-color: var(--secondary);
    color: var(--white);
    padding: 0.75rem 0;
    z-index: 990;
    border-top: 1px solid #222;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.filter-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    white-space: nowrap;
}

.filter-select {
    background-color: transparent;
    color: var(--white);
    border: none;
    padding: 0.4rem 1.25rem 0.4rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-sans);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    background-size: 14px;
}

.filter-select:focus {
    color: var(--primary);
}

.filter-select:hover {
    color: var(--primary);
}

.filter-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.filter-btn:hover {
    background-color: var(--primary-hover);
}

/* Hero Section Carousel Banner */
.hero-banner-carousel {
    position: relative;
    width: 100%;
    height: 520px;
    background-color: #000;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5.5rem;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}

.carousel-caption {
    position: relative;
    z-index: 3;
    color: var(--white);
    text-align: center;
    max-width: 800px;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--white) !important;
    text-shadow: 0 4px 16px rgba(0,0,0,0.95), 0 2px 8px rgba(0,0,0,0.9);
    letter-spacing: -0.03em;
}

.carousel-desc {
    font-size: 1.1rem;
    color: var(--white) !important;
    opacity: 1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.95), 0 2px 6px rgba(0,0,0,0.9);
    margin-bottom: 0.5rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.65rem;
    z-index: 15;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.carousel-indicator.active {
    background-color: var(--primary);
    width: 28px;
    border-radius: 5px;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: var(--transition);
}

.carousel-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%);
}

.carousel-nav-prev { left: 1.5rem; }
.carousel-nav-next { right: 1.5rem; }

.hero-overlay-wrapper {
    position: relative;
    height: 0;
    z-index: 100;
}

.hero-overlay-box {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    width: calc(100% - 3rem);
    z-index: 100;
    position: absolute;
    top: -2.25rem; /* Sit on top of the carousel border */
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--border-color);
}

.hero-overlay-item {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-overlay-divider {
    width: 1.5px;
    height: 20px;
    background-color: var(--border-color);
}

/* Cards & UI */
.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-hover:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--text-muted);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary { background-color: var(--primary-light); color: var(--primary); }
.badge-secondary { background-color: var(--bg-sec); color: var(--text-muted); }
.badge-success { background-color: #D1FAE5; color: #047857; }
.badge-warning { background-color: var(--warning-light); color: var(--warning); }
.badge-danger { background-color: #FEE2E2; color: #B91C1C; }
.badge-gold { background-color: #FEF3C7; color: #B45309; }

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background-color: var(--white);
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-control:read-only {
    background-color: var(--bg-sec);
    color: var(--text-muted);
}

/* Tables */
.table-container {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: var(--bg-sec);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

body:not(.admin-body) tr:hover td {
    background-color: var(--bg-sec);
}

/* Alert Boxes */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #EBF7ED;
    color: #1E4620;
    border-color: #C3E6CB;
}

.alert-error, .alert-danger {
    background-color: #FDF2F2;
    color: #7A1C1C;
    border-color: #F8B4B4;
}

.alert-warning {
    background-color: #FFFDF5;
    color: #664D03;
    border-color: #FFF3CD;
}

/* =============================================
   Admin Layout & Sidebar - Out-Of-The-Box Premium
   ============================================= */
.admin-body {
    background-color: #f1f5f9 !important;
}

/* Custom Admin Header styling */
.admin-navbar-header {
    background-color: var(--white) !important; /* Light background */
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
    z-index: 1000;
}

.admin-navbar-header .navbar-brand {
    font-size: 1.45rem !important;
    color: #0f172a !important; /* Dark brand text */
}

.admin-navbar-header .navbar-brand span {
    color: var(--primary) !important;
}

.admin-navbar-header .navbar-username {
    color: #475569 !important; /* Darker username */
}

.admin-navbar-header .navbar-username svg {
    color: #64748b !important;
}

.admin-navbar-header .logout-trigger-btn {
    color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.06) !important;
    padding: 0.35rem 0.75rem !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    border-radius: 0.375rem !important;
    transition: all 0.2s ease !important;
    font-weight: 700 !important;
}

.admin-navbar-header .logout-trigger-btn:hover {
    color: #ffffff !important;
    background-color: #ef4444 !important;
}

.admin-navbar-header .navbar-toggle-btn {
    color: #475569 !important;
}

.admin-wrapper {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: calc(100vh - 70px);
}

/* Sticky Sidebar & Flex Viewport Layout for Desktop */
@media (min-width: 993px) {
    .admin-body {
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    .admin-navbar-header {
        flex-shrink: 0 !important;
    }
    .admin-wrapper {
        flex-grow: 1 !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        display: grid !important;
        grid-template-columns: 270px 1fr !important;
    }
    .admin-sidebar {
        height: 100% !important;
        overflow-y: auto !important;
    }
    .admin-content {
        height: 100% !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 992px) {
    .admin-wrapper {
        grid-template-columns: 1fr !important;
        position: relative !important;
    }
    .admin-sidebar {
        display: flex !important;
        position: fixed !important;
        top: 69px !important; /* Overlap header bottom border by 1px */
        right: -280px !important; /* Slide from right */
        left: auto !important;
        width: 280px !important;
        height: calc(100vh - 69px) !important;
        z-index: 1010 !important;
        opacity: 0 !important; /* Fade transition start */
        visibility: hidden !important;
        transition: right 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, visibility 0.3s !important;
        border-left: 1px solid #e2e8f0 !important;
        border-right: none !important;
        border-top: none !important; /* Remove top border to merge backgrounds seamlessly */
        box-shadow: -15px 15px 30px rgba(15, 23, 42, 0.04) !important; /* Left-down shadow direction */
        background-color: var(--white) !important;
        padding: 1.5rem 1.25rem !important;
    }
    .admin-sidebar.open {
        right: 0 !important;
        left: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    /* Backdrop overlay using the wrapper pseudo-element */
    .admin-wrapper::before {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.35);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1005;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    body.sidebar-open .admin-wrapper::before {
        opacity: 1;
        pointer-events: auto;
    }
    .admin-navbar-header .navbar-toggle-btn {
        display: flex !important;
    }
    .admin-navbar-header .navbar-menu-wrapper {
        display: none !important;
    }
}

.admin-sidebar {
    background-color: var(--white); /* Light background */
    color: #475569;
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #e2e8f0; /* Right border */
    box-shadow: none;
    z-index: 99;
    position: relative; /* Anchor absolute position elements */
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.5rem 1.25rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-sidebar-menu-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Custom Scrollbar for Sidebar menu */
.admin-sidebar-menu-group::-webkit-scrollbar {
    display: none; /* Hide scrollbar completely */
}

.admin-sidebar-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    padding: 1.25rem 0.75rem 0.4rem 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #475569;
    border-radius: 0.625rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.admin-menu-link svg {
    color: #94a3b8;
    transition: color 0.25s ease;
}

.admin-menu-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.admin-menu-link:hover svg {
    color: #475569;
}

.admin-menu-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, #b91c1c 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.2);
}

.admin-menu-link.active svg {
    color: var(--white);
}

/* Sidebar Profile Card */
.admin-sidebar-profile {
    margin-top: 2rem;
    padding: 1rem 0.75rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.admin-profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #b91c1c 100%);
    color: var(--white);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(227, 24, 55, 0.15);
}

.admin-profile-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.admin-profile-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-profile-role {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 500;
}

.admin-profile-logout {
    color: #64748b;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 0.375rem;
}

.admin-profile-logout:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.08);
}

.admin-content {
    background-color: #f8fafc;
    padding: 2.25rem;
    overflow-y: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-footer-minimal {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* =============================================
   New Out-Of-The-Box Admin Dashboard Styles
   ============================================= */

/* Dashboard Welcome Banner */
.dash-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border-radius: 1.25rem;
    padding: 2.5rem;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 2rem; /* Gap below hero banner */
}

.dash-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 24, 55, 0.15) 0%, rgba(227, 24, 55, 0) 70%);
    filter: blur(20px);
}

.dash-hero-text h2 {
    color: #ffffff !important;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.dash-hero-text h2 span {
    color: var(--primary);
    background: linear-gradient(to right, var(--primary), #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.dash-hero-text p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 480px;
}

.dash-hero-art {
    position: relative;
    z-index: 2;
}

/* Modern Stats Cards */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem; /* Gap between stats grid and layout charts below it */
}

@media (max-width: 1350px) {
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Responsive Helper Utilities */
.show-mobile {
    display: none !important;
}
.show-mobile-block {
    display: none !important;
}
@media (max-width: 576px) {
    .hide-mobile {
        display: none !important;
    }
    .show-mobile {
        display: inline !important;
    }
    .show-mobile-block {
        display: block !important;
    }
}

@media (max-width: 576px) {
    .dash-stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.35rem !important;
    }
    .dash-stat-card {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.6rem 0.2rem !important;
        border-radius: 0.75rem !important;
        gap: 0.25rem !important;
    }
    .dash-stat-icon {
        display: none !important;
    }
    .dash-stat-body {
        align-items: center !important;
        text-align: center !important;
        gap: 0.1rem !important;
        width: 100% !important;
    }
    .dash-stat-value {
        font-size: 0.78rem !important;
        letter-spacing: -0.02em !important;
        white-space: nowrap !important;
    }
    .dash-stat-label {
        font-size: 0.58rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
        color: var(--text-muted) !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        width: 100% !important;
    }
}

.dash-stat-card {
    background-color: var(--white);
    border-radius: 1.25rem;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.dash-stat-card:hover {
    border-color: rgba(227, 24, 55, 0.25);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.dash-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-stat-card:hover .dash-stat-icon {
    /* Flat hover */
}

.dash-stat-card.dash-stat-primary .dash-stat-icon {
    background: linear-gradient(135deg, rgba(227, 24, 55, 0.08) 0%, rgba(227, 24, 55, 0.15) 100%);
    color: var(--primary);
}
.dash-stat-card.dash-stat-green .dash-stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.15) 100%);
    color: #10b981;
}
.dash-stat-card.dash-stat-blue .dash-stat-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #3b82f6;
}
.dash-stat-card.dash-stat-orange .dash-stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: #f59e0b;
}

.dash-stat-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex-grow: 1;
}

.dash-stat-value {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Asymmetric Layout grid columns */
.dash-layout-grid {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 2rem;
}

@media (max-width: 1200px) {
    .dash-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Glassmorphic Panel Component */
.dash-panel {
    background-color: var(--white);
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dash-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #f1f5f9;
    background-color: var(--white);
}

.dash-panel-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.dash-panel-sub {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0.2rem 0 0 0;
    font-weight: 500;
}

/* Quick Actions Visual Grid */
.dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1.5rem;
}

.dash-action-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    text-decoration: none;
    background-color: var(--white);
    transition: all 0.25s ease;
}

.dash-action-card svg {
    padding: 8px;
    border-radius: 0.75rem;
    background-color: #f1f5f9;
    color: #64748b;
    transition: all 0.25s ease;
}

.dash-action-card span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

.dash-action-card p {
    font-size: 0.68rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.dash-action-card:hover {
    border-color: var(--primary);
}

.dash-action-card:hover svg {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Recent activity list styling */
.dash-recent-list {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.85rem;
}

.dash-recent-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.dash-recent-item:hover {
    background-color: #f8fafc;
}

.dash-recent-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-recent-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    gap: 0.15rem;
}

.dash-recent-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-recent-desc {
    font-size: 0.72rem;
    color: #64748b;
}

.dash-recent-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    flex-shrink: 0;
}

.dash-recent-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
}

/* Badges for status */
.dash-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dash-badge-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.dash-badge-approved {
    background-color: #dbeafe;
    color: #2563eb;
}

.dash-badge-completed {
    background-color: #d1fae5;
    color: #059669;
}

.dash-badge-cancelled {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Charts Layout Grid */
.dash-charts-row {
    display: grid;
    gap: 1.5rem;
}

.dash-charts-row.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

.dash-charts-row.grid-2-1-col {
    grid-template-columns: 1.8fr 1fr;
}

@media (max-width: 992px) {
    .dash-charts-row.grid-2-col,
    .dash-charts-row.grid-2-1-col {
        grid-template-columns: 1fr;
    }
}

.dash-info-widget {
    background-color: #fafafb;
    border-top: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.widget-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.widget-info-row span:last-child {
    color: #0f172a;
    font-weight: 700;
}
}

.dash-panel-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* Table inside panel */
.dash-panel .table-container {
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.dash-panel table {
    margin: 0;
}

/* ID Badge */
.dash-id-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-sec);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Avatar */
.dash-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.customer-wrapper {
    flex-grow: 1;
    background-color: var(--white);
    padding-bottom: 3rem;
}

/* Split CTA Section */
.split-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .split-cards {
        grid-template-columns: 1fr;
    }
}

.split-card {
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden; /* Crop images to blend inside card */
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.split-card:hover {
    box-shadow: var(--shadow-lg);
}

.split-card-dark {
    background-color: #333740; /* Dark Charcoal Slate */
    border: 1px solid #444b58;
}

.split-card-red {
    background-color: #C91D34; /* Crimson Red */
    border: 1px solid #b2182b;
}

.split-card-content {
    max-width: 55%;
    z-index: 3;
}

.split-card-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.split-card-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.split-card-img-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.split-card-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.split-card-dark .split-card-img-wrapper::before {
    background: linear-gradient(to right, #333740 0%, rgba(51, 55, 64, 0) 100%);
}

.split-card-red .split-card-img-wrapper::before {
    background: linear-gradient(to right, #C91D34 0%, rgba(201, 29, 52, 0) 100%);
}

.split-card:hover .split-card-img-wrapper {
    /* No scale effect */
}

.split-card-img-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.split-card-img-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center left;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.15));
}

/* Catalog Card styling per rules.md */
.car-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.car-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--text-muted);
}

.car-card-img-wrapper {
    background-color: var(--bg-sec);
    height: 170px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #CCC;
    font-size: 3.5rem;
}

.car-card-badge-left {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--warning);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.car-card-fav-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    z-index: 2;
    transition: var(--transition);
}

.car-card-fav-btn:hover {
    color: var(--primary);
}

.car-card-details {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.car-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.car-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    max-width: 60%;
}

.car-card-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    text-align: right;
}

.car-card-price span {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
}

.car-spec-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.car-spec-pill {
    background-color: var(--bg-sec);
    color: var(--text-main);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.car-card-location {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.car-card-btn {
    width: 100%;
    background-color: var(--white);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.car-card-btn:hover {
    background-color: var(--primary);
    color: var(--white) !important;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(227, 24, 55, 0.2);
}

/* Subscription & Blog Section */
.info-blog-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

@media (max-width: 992px) {
    .info-blog-section {
        grid-template-columns: 1fr;
    }
}

.sub-box {
    background-color: var(--bg-sec);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sub-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.sub-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Blog layouts */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--text-muted);
}

.blog-thumb {
    background-color: var(--bg-sec);
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #CCC;
    font-size: 2.5rem;
}

.blog-content {
    padding: 1rem;
}

.blog-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}

.blog-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.blog-snippet {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Premium Services Details (Outline card grids) */
.services-detail-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: var(--transition);
}

.services-detail-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.services-detail-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--primary);
}

.services-detail-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.services-detail-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* WhatsApp Floating element with Badge count */
.floating-whatsapp {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    background-color: var(--success);
    color: var(--white);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 999;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    background-color: #128C7E;
}

.floating-whatsapp-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--primary);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* Footer & Red Bottom Bar */
.main-footer {
    background-color: #000000; /* Hitam Pekat */
    color: #E5E7EB; /* Light grey/white text for premium feel */
    padding: 3.5rem 0 0 0;
    border-top: 1px solid #111111;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-link {
    font-size: 0.8rem;
    color: #9CA3AF;
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom-red {
    background-color: var(--primary);
    color: var(--white);
    padding: 1.25rem 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-wa {
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-bottom-copyright {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Custom Dropdown / Select styling */
/* Custom Dropdown / Select styling (Modern Premium Light Theme) */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    user-select: none;
}

.custom-select-trigger {
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    box-sizing: border-box;
}

.custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.25s ease;
}

.custom-select-wrapper.open .custom-select-trigger::after {
    transform: translateY(-50%) rotate(-135deg);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 29, 52, 0.08);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    padding: 0.25rem 0;
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(2px);
}

.custom-select-option {
    padding: 0.65rem 1rem;
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    white-space: nowrap;
}

.custom-select-option:hover {
    background-color: var(--bg-main);
    color: var(--primary);
}

.custom-select-option.selected {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 700;
}

/* Specific overrides for various custom select placements */

/* Filter Bar Custom Select styling (Match LIVA Premium Dark Theme) */
.filter-bar .custom-select-wrapper {
    display: inline-block;
}

.filter-bar .custom-select-trigger {
    background-color: transparent !important;
    color: var(--white) !important;
    border: none !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 0.4rem 1.25rem 0.4rem 0.5rem !important;
    min-height: auto !important;
    box-shadow: none !important;
}

.filter-bar .custom-select-trigger::after {
    border-right: 2px solid var(--white) !important;
    border-bottom: 2px solid var(--white) !important;
    right: 2px !important;
}

.filter-bar .custom-select-wrapper.open .custom-select-trigger {
    color: var(--primary) !important;
}

.filter-bar .custom-select-wrapper.open .custom-select-trigger::after {
    border-color: var(--primary) !important;
}

.filter-bar .custom-select-options {
    background-color: #161616 !important;
    border: 1px solid #333 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.filter-bar .custom-select-option {
    color: #ccc !important;
    font-size: 0.8rem !important;
}

.filter-bar .custom-select-option:hover {
    background-color: #222 !important;
    color: var(--primary) !important;
}

.filter-bar .custom-select-option.selected {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    font-weight: 700;
}

.sort-dropdown-wrapper .custom-select-wrapper {
    display: inline-block;
}

.sort-dropdown-wrapper .custom-select-trigger {
    min-height: auto;
    padding: 0.35rem 1.75rem 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    color: var(--dark);
}

.sort-dropdown-wrapper .custom-select-trigger::after {
    right: 8px;
}

.sort-dropdown-wrapper .custom-select-options {
    right: 0;
    left: auto;
    min-width: 150px;
}

/* Sidebar Custom Select */
.catalog-sidebar .custom-select-wrapper {
    display: block;
    width: 100%;
}

.catalog-sidebar .custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 42px;
}

.catalog-sidebar .custom-select-options {
    width: 100%;
}

/* Form Group Custom Select (Booking Page) */
.form-group .custom-select-wrapper {
    display: block;
    width: 100%;
}

.form-group .custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 45px;
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    font-size: 0.9rem;
}

.form-group .custom-select-options {
    width: 100%;
}

/* Table Filter Bar Styling */
.table-filter-bar {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fafafb;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.table-filter-bar .table-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.table-filter-bar .table-search-input {
    padding-left: 2.5rem;
    font-size: 0.82rem;
    height: 38px;
    border-radius: 8px;
    width: 100%;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    transition: var(--transition);
}

.table-filter-bar .table-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 29, 52, 0.08);
    outline: none;
}

.table-filter-bar .table-search-wrapper .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.table-filter-bar .table-actions-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Custom Select in Table Filter Bar style overrides */
.table-filter-bar .custom-select-wrapper {
    display: inline-block;
}

.table-filter-bar .custom-select-trigger {
    height: 38px;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    color: var(--dark) !important;
    padding: 0 2rem 0 0.85rem !important;
    background-color: var(--white) !important;
    min-width: 150px;
}

.table-filter-bar .custom-select-trigger::after {
    right: 12px !important;
    border-color: var(--text-muted) !important;
}

.table-filter-bar .custom-select-options {
    border-radius: 8px !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    min-width: 100%;
    box-sizing: border-box;
}

.table-filter-bar .custom-select-option {
    font-size: 0.82rem !important;
    padding: 0.55rem 0.85rem !important;
}

@media (max-width: 576px) {
    .table-filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        padding: 1rem 1rem !important;
    }
    
    .table-filter-bar .table-search-wrapper {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .table-filter-bar .table-actions-wrapper {
        width: 100% !important;
        display: flex !important;
        gap: 0.5rem !important;
    }
    
    .table-filter-bar .table-actions-wrapper .custom-select-wrapper {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .table-filter-bar .table-actions-wrapper .custom-select-trigger {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        min-width: 0 !important;
    }
}

/* Desktop drawer filter hide */
.navbar-drawer-filters {
    display: none;
}

/* Responsive adjustments (Mobile & Tablet viewports) */

@media (max-width: 992px) {
    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navbar */
    .navbar-container {
        height: 70px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 0;
        padding-bottom: 0;
    }
    .navbar-location {
        border-left: none;
        padding-left: 0;
        margin-left: 0.5rem;
    }

    /* Navbar Drawer Filters */
    .navbar-drawer-filters {
        display: block;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }
    
    .navbar-drawer-filters .filter-title {
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.75rem;
    }
    
    .navbar-drawer-filters form {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .navbar-drawer-filters .custom-select-wrapper {
        width: 100%;
        display: block;
    }
    
    .navbar-drawer-filters .custom-select-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-height: 40px;
        background-color: var(--bg-main) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--dark) !important;
    }
    
    .navbar-drawer-filters .custom-select-trigger::after {
        border-right-color: var(--text-muted) !important;
        border-bottom-color: var(--text-muted) !important;
        right: 15px !important;
    }
    
    .navbar-drawer-filters .custom-select-options {
        width: 100%;
    }

    /* Hero Carousel & Overlay Box */
    .hero-banner-carousel {
        height: 350px;
    }
    .carousel-title {
        font-size: 1.75rem !important;
    }
    .carousel-desc {
        font-size: 0.9rem !important;
    }
    .carousel-slide {
        padding-bottom: 2.5rem;
    }
    .carousel-indicators {
        bottom: 2.5rem;
    }
    .hero-overlay-wrapper {
        height: auto;
    }
    .hero-overlay-box {
        position: static;
        transform: none;
        width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        margin-top: 1rem;
        margin-bottom: 2rem;
    }
    .hero-overlay-divider {
        display: none;
    }

    /* Split Cards */
    .split-card {
        padding: 2rem 1.5rem;
        height: auto;
        min-height: 200px;
    }
    .split-card-img-wrapper {
        width: 200px;
        height: 130px;
        right: -1rem;
    }
    .split-card-content {
        max-width: 60%;
    }

    /* Grids */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3, .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Admin */
    .admin-wrapper {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        /* Inheriting slide-out drawer from max-width: 992px */
    }
    .admin-content {
        padding: 1rem;
    }

    /* Admin Mobile Menu Drawer Utilities */
    .admin-mobile-only {
        display: block !important;
    }
    .admin-desktop-only {
        display: none !important;
    }
}

@media (max-width: 576px) {
    /* Split Cards on mobile */
    .split-card {
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        min-height: 260px;
        padding: 1.5rem;
    }
    .split-card-content {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    .split-card-img-wrapper {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 1rem;
        align-self: flex-end;
        width: 180px;
        height: 110px;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Navbar links on narrow mobile */
    .navbar-links {
        gap: 0.75rem;
    }
    .navbar-link {
        font-size: 0.8rem;
    }

    /* Filter Bar form narrow mobile */
    .filter-bar form {
        grid-template-columns: 1fr;
    }

    /* Grids */
    .grid-4, .grid-3, .grid-2, .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Info Blog Section */
    .sub-box {
        padding: 1.5rem;
    }
    .sub-title {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   Modern UI Elements: Catalog, Sidebar, Striped Tables, Map Card, Steppers
   ========================================================================== */

/* 2-Column Catalog Layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.catalog-sidebar {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 992px) {
    .catalog-sidebar {
        position: static;
        box-shadow: none;
    }
}

.filter-sidebar-group {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.filter-sidebar-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-sidebar-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
}

.filter-sidebar-select-header span {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    margin-left: auto;
    margin-right: 0.5rem;
}

.filter-sidebar-options {
    padding: 0.75rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 500;
}

.filter-checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Compare Button for Catalog Cards */
.btn-compare {
    width: 100%;
    background-color: var(--white);
    color: var(--dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    margin-top: 0.75rem;
}

.btn-compare:hover {
    border-color: var(--dark);
    background-color: var(--bg-sec);
}

/* Active Search Chips */
.search-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-chip {
    background-color: var(--bg-sec);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.search-chip:hover {
    background-color: #F1F2F4;
    border-color: var(--text-muted);
}

.search-chip span {
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 14px;
    width: 14px;
    margin-left: 0.25rem;
    transform: translateY(-0.5px);
}

/* Detail Page Top Card & Image Styles */
.detail-top-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.detail-img-wrapper {
    background-color: #F3F4F6;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .detail-top-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
    }
    
    .detail-img-wrapper {
        height: 220px;
    }
}

/* Specs Table & Checklist detail styles */
.specs-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .specs-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.specs-striped-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.25rem;
}

.specs-striped-table tr:nth-child(even) {
    background-color: var(--bg-sec);
}

.specs-striped-table td {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.specs-striped-table td.spec-label {
    font-weight: 600;
    color: var(--text-muted);
}

.specs-striped-table td.spec-value {
    font-weight: 700;
    color: var(--dark);
    text-align: right;
}

.quality-info-box {
    background-color: var(--bg-sec);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.quality-checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quality-check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.quality-check-badge {
    background-color: #DEF7EC;
    color: #03543F;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Detail view description & map */
.bottom-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .bottom-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.description-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.location-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.btn-map-action {
    width: 100%;
    background-color: var(--white);
    color: var(--dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-map-action:hover {
    border-color: var(--dark);
    background-color: var(--bg-sec);
}

#leaflet-map {
    height: 200px;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    z-index: 10;
}

.dealer-info-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: var(--bg-sec);
}

.dealer-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--dark);
}

.dealer-stars {
    color: var(--warning);
    font-size: 0.85rem;
    display: flex;
    gap: 0.15rem;
}

.dealer-address {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Steppers & Checkout details */
.booking-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    background-color: var(--bg-sec);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    gap: 1rem;
    flex-wrap: wrap;
}

.booking-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.booking-step.active {
    color: var(--primary);
}

.booking-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.booking-step.active .booking-step-num {
    background-color: var(--primary);
    color: var(--white);
}

/* Bank credit cards */
.bank-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    .bank-cards-grid {
        grid-template-columns: 1fr;
    }
}

.bank-card-premium {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 140px;
}

.bank-card-premium.bca {
    background: linear-gradient(135deg, #005c97 0%, #363795 100%);
}

.bank-card-premium:hover {
    box-shadow: var(--shadow-lg);
}

.bank-card-chip {
    width: 32px;
    height: 24px;
    background-color: #ffd700;
    border-radius: 4px;
    opacity: 0.8;
}

/* Upload dropzone custom area */
.upload-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    background-color: var(--bg-sec);
    transition: var(--transition);
    position: relative;
}

.upload-dropzone:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.upload-dropzone-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
}

.upload-dropzone-text {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.upload-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Header Mobile Drawer & Toggle Styles */
.navbar-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    align-items: center;
    justify-content: center;
}

.navbar-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    align-self: flex-end;
}

.navbar-menu-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    margin-left: 2.5rem;
}

/* Default Utility Styles for Admin Navigation */
.admin-mobile-only {
    display: none !important;
}
.admin-desktop-only {
    display: block !important;
}

@media (max-width: 768px) {
    .navbar-toggle-btn {
        display: flex;
    }
    
    .navbar-menu-wrapper {
        position: fixed;
        top: 0;
        right: -280px; /* Hidden off-screen */
        width: 280px;
        height: 100vh;
        overflow-y: auto;
        background-color: var(--white);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        z-index: 2000;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 2rem 1.5rem;
        gap: 2rem;
        margin-left: 0;
        transition: right 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.3s;
        visibility: hidden; /* Prevent click blocking when closed */
        pointer-events: none;
    }
    
    .navbar-menu-wrapper.open {
        right: 0; /* Slide in drawer */
        visibility: visible;
        pointer-events: auto;
    }
    
    .navbar-close-btn {
        display: flex;
    }
    
    .navbar-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        width: 100%;
        padding: 0;
    }
    
    .navbar-auth-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        width: 100%;
        margin-top: auto; /* Push to bottom */
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }
    
    .navbar-username {
        width: 100%;
        padding-bottom: 0.5rem;
    }
    
    .btn-whatsapp-pill {
        width: 100%;
        box-sizing: border-box;
    }
    
    .admin-mobile-only {
        display: block !important;
    }
    .admin-desktop-only {
        display: none !important;
    }
}



/* Responsive Charts Grid styling */
.dash-charts-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.grid-2-col {
    grid-template-columns: 1fr 1fr;
}
.grid-2-1-col {
    grid-template-columns: 2fr 1fr;
}
@media (max-width: 992px) {
    .grid-2-col, .grid-2-1-col {
        grid-template-columns: 1fr !important;
    }
}

/* Global Disabled Button Styling Override */
button:disabled,
.btn:disabled,
.car-card-btn:disabled,
.car-card-btn[disabled] {
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* Modern Toast Notification Container */
.toast-container {
    position: fixed;
    top: 85px;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
    width: calc(100% - 3rem);
    pointer-events: none; /* Allow clicks to pass through when empty */
}

.toast {
    pointer-events: auto; /* Enable clicks inside actual toasts */
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid var(--primary);
}

.toast-error .toast-icon {
    color: var(--primary);
}

.toast-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.toast-close-btn:hover {
    color: var(--dark);
}

/* Header Centering for Desktop */
@media (min-width: 769px) {
    .navbar-links {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Modern Pagination Styling */
.pagination {
    display: inline-flex;
    padding-left: 0;
    list-style: none;
    border-radius: var(--radius-sm);
    gap: 0.25rem;
    margin: 1.5rem 0 0.5rem;
}

.pagination li {
    display: inline;
}

.pagination li a {
    position: relative;
    display: block;
    padding: 0.5rem 0.85rem;
    line-height: 1.25;
    color: var(--text-main);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.pagination li a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.pagination li.active a {
    z-index: 3;
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}

.pagination li.disabled a,
.pagination li.disabled span {
    color: var(--text-muted);
    pointer-events: none;
    cursor: not-allowed;
    background-color: var(--bg-sec);
    border-color: var(--border-color);
}

/* =============================================
   Custom Calendar / Datepicker Styling (tiket.com style)
   ============================================= */
.custom-datepicker-container {
    position: relative;
    width: 100%;
}

.custom-datepicker-input {
    width: 100%;
    padding: 0.75rem 2.25rem 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--white);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    box-sizing: border-box;
    position: relative;
}

.custom-datepicker-input:focus,
.custom-datepicker-container.open .custom-datepicker-input {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.08);
}

.custom-datepicker-input .calendar-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.custom-datepicker-popup {
    position: fixed;
    width: 320px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 9999;
    margin-top: 4px;
    box-sizing: border-box;
    pointer-events: none;
}

.custom-datepicker-popup.open-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(2px);
    pointer-events: auto;
}

.datepicker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.datepicker-month-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--dark);
}

.datepicker-nav-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}

.datepicker-nav-btn:hover {
    background-color: var(--bg-sec);
    border-color: var(--text-muted);
}

.datepicker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.datepicker-weekday {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.25rem 0;
    text-transform: uppercase;
}

.datepicker-day {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.datepicker-day:hover:not(.disabled) {
    background-color: var(--primary-light);
    color: var(--primary);
}

.datepicker-day.disabled {
    color: var(--text-muted);
    opacity: 0.35;
    cursor: not-allowed;
}

.datepicker-day.other-month {
    visibility: hidden;
}

.datepicker-day.selected {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    font-weight: 700;
}

.datepicker-day.in-range {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
    border-radius: 0;
}

.datepicker-day.range-start {
    border-top-left-radius: var(--radius-sm);
    border-bottom-left-radius: var(--radius-sm);
}

.datepicker-day.range-end {
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

/* Responsive Grid layouts for Booking Page */
.booking-layout-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

@media (max-width: 992px) {
    .booking-layout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .booking-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Validation error highlighting */
.error-highlight .custom-datepicker-input,
.error-highlight .custom-select-trigger {
    border-color: var(--primary) !important;
    background-color: var(--primary-light) !important;
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.15) !important;
}

/* Custom Premium Payment Info Box */
.payment-info-box {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 1.25rem 1.5rem !important;
    margin-bottom: 2rem !important;
    position: relative;
    overflow: hidden;
    text-align: left;
    transition: var(--transition);
}


.payment-info-box::before {
    display: none !important;
}

.payment-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.payment-info-badge {
    font-size: 0.65rem;
    font-weight: 800;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    display: inline-block;
    line-height: 1;
}

.payment-info-title {
    font-size: 0.9rem;
    font-weight: 850;
    color: var(--dark);
    margin: 0;
}

.payment-info-text {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 576px) {
    .payment-info-box {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    .payment-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .payment-info-title {
        font-size: 0.85rem;
    }
    .payment-info-text {
        font-size: 0.775rem;
        line-height: 1.5;
    }
}

/* Global Breadcrumbs Responsiveness & Horizontal Scroll */
.breadcrumbs-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.breadcrumbs-wrapper > a {
    flex-shrink: 0 !important;
}

.breadcrumbs-content {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.breadcrumbs-content::-webkit-scrollbar {
    display: none !important;
}

.breadcrumbs-content > * {
    flex-shrink: 0 !important;
}

/* On mobile viewports, optimize spacing and layout */
@media (max-width: 768px) {
    .breadcrumbs-wrapper {
        gap: 0.75rem !important;
    }
    .breadcrumbs-content {
        font-size: 0.8rem !important;
    }
    .breadcrumbs-content span[style*="margin"] {
        margin: 0 0.35rem !important;
    }
}

@media (max-width: 576px) {
    .breadcrumbs-section {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    .breadcrumbs-section > div:last-child {
        width: 100% !important;
    }
    .breadcrumbs-section .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Global Responsive Layout Grids for Customer Pages */
.details-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.payment-upload-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
}

.profile-layout-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
}

.blog-layout-grid {
    display: grid;
    grid-template-columns: 2.2fr 0.8fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .details-layout-grid,
    .payment-upload-layout-grid,
    .profile-layout-grid,
    .blog-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Hide desktop top filter bar on mobile drawer viewports */
@media (max-width: 768px) {
    .filter-bar {
        display: none !important;
    }
}

/* Report Page Layout Grid */
.report-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Return Page Layout Grid */
.return-page-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* No row hover utility (for detail pages) — completely disables background change on hover */
.no-row-hover tr:hover td,
.no-row-hover .no-hover-row:hover td {
    background-color: inherit !important;
}

/* Specific: keep the primary-light background on Total Harga Sewa row even on hover */
.no-hover-row td {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
}

/* Suppress TR hover on payment/rental detail tables */
.payment-detail-table tr:hover td,
.rental-detail-table tr:hover td {
    background-color: transparent !important;
}

@media (max-width: 1100px) {
    .report-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .return-page-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Custom horizontal scrollbar for admin tables (lightweight & hardware accelerated) */
.admin-content .table-responsive::-webkit-scrollbar {
    height: 7px; /* Slim height for user friendliness */
}

.admin-content .table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9; /* Light slate track background */
    border-radius: 99px;
}

.admin-content .table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary); /* Gemindo Red */
    border-radius: 99px;
    border: 1px solid #f1f5f9; /* Creates a clean gap effect inside track */
}

.admin-content .table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover); /* Darker red hover state */
}

/* Custom styling for report filter form in mobile view */
@media (max-width: 576px) {
    .report-filter-form {
        width: 100% !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
        padding: 0.75rem !important;
        box-sizing: border-box !important;
    }
    .report-filter-form > div {
        width: 100% !important;
        justify-content: space-between !important;
        display: flex !important;
    }
    .report-filter-form input[type="date"] {
        flex: 1 !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
    .report-filter-form button {
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 992px) {
    .details-layout-grid,
    .payment-upload-layout-grid,
    .profile-layout-grid,
    .blog-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    /* Admin tables: always horizontally scrollable, never stack */
    .admin-content .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-content table {
        white-space: nowrap;
    }
    /* Admin sidebar collapses on mobile */
    .admin-wrapper {
        grid-template-columns: 1fr !important;
    }
    .admin-sidebar {
        /* Inheriting drawer styles */
    }
}

/* Category page guide layout responsive */

/* ==========================================================================
   Global Modals: Login/Register & Logout Confirmation
   ========================================================================== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none; /* Make clicks pass through when closed */
}

.auth-modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auth-modal-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    width: 480px;
    max-width: 90%;
    padding: 2.25rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-overlay.open .auth-modal-card {
    transform: translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: var(--transition);
}

.auth-modal-close:hover {
    color: var(--dark);
}

/* Tabs */
.auth-modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.auth-tab-btn {
    background: none;
    border: none;
    padding-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.auth-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.auth-tab-btn.active {
    color: var(--primary);
}

.auth-tab-btn.active::after {
    transform: scaleX(1);
}

/* Panes */
.auth-pane {
    display: none;
}

.auth-pane.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.auth-pane-header {
    margin-bottom: 1.5rem;
}

.auth-pane-header h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.auth-pane-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Revamped Toast Styles
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 85px;
    right: 2rem;
    bottom: auto;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    width: calc(100% - 4rem);
    pointer-events: none; /* Allow clicks to pass through when empty */
}

/* Position toast container below the filter bar on desktop homepage */
@media (min-width: 769px) {
    .toast-container.has-filter {
        top: 140px !important;
    }
}

@media (max-width: 576px) {
    .toast-container {
        top: 80px;
        right: 1rem;
        bottom: auto;
        width: calc(100% - 2rem);
    }
}

.toast {
    pointer-events: auto; /* Enable clicks inside actual toasts */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-indicator-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.toast-indicator-badge.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.toast-indicator-badge.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.toast-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toast-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark);
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
}

.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    animation: toastProgress 5s linear forwards;
}

.toast-progress-bar.success {
    background-color: #10b981;
}

.toast-progress-bar.error {
    background-color: #ef4444;
}

@keyframes toastProgress {
    to { transform: scaleX(0); }
}

/* ==========================================================================
   Mobile-Only Custom Style Fixes
   ========================================================================== */
@media (max-width: 768px) {
    /* Carousel Navigation Buttons */
    .carousel-nav-btn {
        width: 32px !important;
        height: 32px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        left: 0.5rem !important;
    }
    .carousel-nav-next {
        right: 0.5rem !important;
        left: auto !important;
    }
    .carousel-title {
        font-size: 1.5rem !important;
    }
    .carousel-desc {
        font-size: 0.85rem !important;
    }
    .carousel-caption {
        padding: 0 2rem !important;
    }

    /* 3 Nilai Unggulan Box Overlay */
    .hero-overlay-box {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
        margin-top: 1rem !important;
        margin-bottom: 2rem !important;
        text-align: center !important;
        box-shadow: var(--shadow-sm) !important;
    }
    .hero-overlay-item {
        flex-direction: column !important;
        gap: 0.25rem !important;
        font-size: 0.75rem !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .hero-overlay-item svg {
        width: 16px !important;
        height: 16px !important;
        margin: 0 auto !important;
    }
    .hero-overlay-divider {
        display: none !important;
    }

    /* Services Detail - Compact 2-column vertical grid on mobile */
    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        overflow-x: visible !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
    }
    .services-detail-card {
        padding: 1.25rem 0.85rem !important;
        box-shadow: none !important;
        text-align: center !important;
    }
    .services-detail-icon {
        margin-bottom: 0.5rem !important;
    }
    .services-detail-icon svg {
        width: 28px !important;
        height: 28px !important;
    }
    .services-detail-title {
        font-size: 0.8rem !important;
        margin-bottom: 0.35rem !important;
    }
    .services-detail-desc {
        font-size: 0.7rem !important;
        text-align: left !important;
    }

    /* Datepicker Centering */
    .custom-datepicker-popup {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.95) !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
    }
    .custom-datepicker-popup.open-popup {
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

/* Honda Marketplace Split Cards Mobile Fix */
@media (max-width: 576px) {
    .split-card {
        height: 170px !important;
        min-height: auto !important;
        position: relative;
        padding: 1.25rem !important;
    }
    .split-card-content {
        max-width: 60% !important;
        margin-bottom: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        z-index: 3;
    }
    .split-card-title {
        font-size: 1.15rem !important;
        margin-bottom: 0.25rem !important;
    }
    .split-card-desc {
        font-size: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .split-card-img-wrapper {
        position: absolute !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 140px !important;
        height: 100px !important;
        margin-top: 0 !important;
        z-index: 1;
    }

    /* Search Result Header Mobile Stack */
    .search-result-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    .search-result-title {
        font-size: 1.35rem !important;
    }
    .sort-dropdown-wrapper {
        width: 100% !important;
        justify-content: space-between !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding-bottom: 0.75rem !important;
    }
}

/* ==========================================================================
   Daftar Armada Mobile Slide-out Drawer & Header
   ========================================================================== */
@media (max-width: 992px) {
    /* Show mobile filter drawer trigger */
    .mobile-filter-bar-container {
        display: block !important;
    }
    /* Drawer wrapper positioning */
    .filter-drawer-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 10000;
        visibility: hidden;
        transition: visibility 0.3s;
        pointer-events: none; /* Make clicks pass through when closed */
    }
    .filter-drawer-wrapper.open {
        visibility: visible;
        pointer-events: auto;
    }
    .filter-drawer-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .filter-drawer-wrapper.open .filter-drawer-backdrop {
        opacity: 1;
    }
    
    /* Reposition sidebar to slide out */
    .catalog-sidebar {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 300px !important;
        max-width: 85% !important;
        height: 100% !important;
        background: var(--white) !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15) !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        z-index: 10002;
    }
    .filter-drawer-wrapper.open .catalog-sidebar {
        transform: translateX(0) !important;
    }
    
    .filter-drawer-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border-color);
        background-color: var(--bg-sec);
    }
    .filter-drawer-body {
        padding: 1.25rem;
        overflow-y: auto;
        flex-grow: 1;
    }
}

/* ==========================================================================
   Responsive Steppers
   ========================================================================== */
.booking-steps-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.booking-steps-arrow .arrow-mobile {
    display: none;
}
.booking-steps-arrow .arrow-desktop {
    display: inline-flex;
}

@media (max-width: 768px) {
    .booking-steps-arrow .arrow-desktop {
        display: none;
    }
    .booking-steps-arrow .arrow-mobile {
        display: inline-flex;
    }
    .booking-steps {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        padding: 1.25rem !important;
        gap: 0.5rem !important;
    }
    .booking-step {
        width: 100% !important;
    }
    .booking-steps-arrow {
        width: 24px !important;
        height: 16px !important;
        margin-left: 12px !important;
        transform: translateX(-50%) !important;
        margin-top: -2px !important;
        margin-bottom: -2px !important;
    }
}

/* ==========================================================================
   General Hover Suppressions (Detail/Stripped Tables)
   ========================================================================== */
.specs-striped-table tr:hover td {
    background-color: transparent !important;
}
.specs-striped-table tr:nth-child(even):hover td {
    background-color: var(--bg-sec) !important;
}

/* ==========================================================================
   Modern Segmented Control / Tabs
   ========================================================================== */
.segmented-control {
    display: inline-flex;
    background-color: #e2e8f0;
    padding: 0.3rem;
    border-radius: 0.75rem;
    gap: 0.3rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.segmented-tab-btn {
    border: none;
    background: none;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.segmented-tab-btn:hover {
    color: #0f172a;
}

.segmented-tab-btn.active {
    background-color: var(--white);
    color: #0f172a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
/* ==========================================================================
   Dashboard Grids & Skeleton Loader
   ========================================================================== */
.dash-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.dash-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .dash-grid-2, .dash-grid-3 {
        grid-template-columns: 1fr;
    }
}

.admin-skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.skeleton-hero {
    height: 140px;
    background-color: #e2e8f0;
    border-radius: 1.25rem;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.skeleton-card {
    height: 90px;
    background-color: #e2e8f0;
    border-radius: 1rem;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-element {
    background-color: #e2e8f0;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-body-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@keyframes skeleton-pulse {
    0% {
        background-color: #e2e8f0;
    }
    50% {
        background-color: #edf2f7;
    }
    100% {
        background-color: #e2e8f0;
    }
}

@media (max-width: 992px) {
    .skeleton-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .skeleton-body-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar scroll indicator overlay */
.sidebar-scroll-indicator {
    position: absolute;
    bottom: 96px; /* Positioned float overlaying right above the sidebar profile card */
    left: 1.25rem;
    right: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 2.25rem 0.5rem 0.5rem 0.5rem;
    font-size: 0.7rem;
    color: var(--primary);
    background: linear-gradient(to top, var(--white) 50%, rgba(255, 255, 255, 0) 100%);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to menu items underneath */
    transition: opacity 0.25s ease, visibility 0.25s ease;
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Compact Datepicker for Report Filter */
.report-filter-form .custom-datepicker-container {
    max-width: 135px !important;
    width: auto !important;
    display: inline-block !important;
}

.report-filter-form .custom-datepicker-input {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0.25rem 2rem 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    border-radius: 0.5rem !important;
    border-color: #e2e8f0 !important;
}

.report-filter-form .custom-datepicker-input .calendar-icon {
    right: 8px !important;
}

.report-filter-form .custom-datepicker-input .calendar-icon svg {
    width: 14px !important;
    height: 14px !important;
}

/* Table Filter Bar Styles */
.table-filter-bar {
    background-color: #fafafb !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.table-search-input:focus,
.table-status-filter:focus,
.table-sort-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.08) !important;
    outline: none !important;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Responsive Tables to Cards for Mobile Viewports
   ========================================================================== */
@media (max-width: 768px) {
    /* Prevent accidental horizontal scrolling across the entire page */
    html, body {
        overflow-x: hidden !important;
    }

    /* Remove table-specific wrapper boxes to let cards float freely */
    .table-container {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        border-radius: 0 !important;
    }
    
    .table-responsive {
        overflow-x: visible !important;
    }
    
    /* Convert tables and all subelements to blocks so they stack */
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) {
        border: none !important;
        background: transparent !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) thead {
        display: none !important;
    }
    
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) tbody,
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) tr,
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Style each table row as a premium individual Card */
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) tbody tr {
        background: var(--white) !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: var(--radius-lg) !important;
        margin-bottom: 1.5rem !important;
        padding: 1.25rem 1rem !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* Format table cells inside the card */
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) tbody td {
        border: none !important;
        border-bottom: 1px solid #f8fafc !important;
        position: relative !important;
        padding: 0.65rem 0.5rem 0.65rem 45% !important;
        text-align: right !important;
        font-size: 0.85rem !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        min-height: 2.5rem !important;
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
        white-space: normal !important;
        color: #334155 !important;
    }
    
    /* First cell (Header of the Card) */
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) tbody tr td:first-child {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        border-bottom: 1.5px solid #f1f5f9 !important;
        padding-bottom: 0.85rem !important;
        margin-bottom: 0.5rem !important;
        color: var(--primary) !important;
    }
    
    /* Last cell (Footer of the Card containing Actions) */
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) tbody tr td:last-child {
        border-bottom: none !important;
        padding-top: 1rem !important;
        margin-top: 0.75rem !important;
        border-top: 1px dashed #e2e8f0 !important;
        justify-content: center !important;
        text-align: center !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        background-color: #f8fafc !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        margin-bottom: -1.25rem !important;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
        padding-bottom: 1rem !important;
        min-height: 3.5rem !important;
        width: calc(100% + 2rem) !important;
    }
    
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) tbody tr td:last-child::before {
        display: none !important;
    }
    
    /* Stretched premium action buttons on mobile footer */
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) tbody td:last-child a,
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) tbody td:last-child button {
        flex: 1 !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 0.55rem 1rem !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
        margin: 0 0.25rem !important;
        font-weight: 700 !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    /* Column labels on the left */
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) tbody td[data-label]::before {
        content: attr(data-label) !important;
        position: absolute !important;
        left: 0.5rem !important;
        width: 40% !important;
        text-align: left !important;
        font-weight: 700 !important;
        color: #64748b !important;
        text-transform: uppercase !important;
        font-size: 0.7rem !important;
        letter-spacing: 0.05em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    /* Suppress table row hover background changes inside card cells */
    table:not(.specs-striped-table):not(.payment-detail-table):not(.rental-detail-table) tbody tr:hover td:not(:last-child) {
        background-color: transparent !important;
    }

    /* Collapse page grids to 1 column on mobile viewports */
    .grid-3, .grid-2, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Adjust width of detail tables dynamically on mobile */
    .rental-detail-table td:first-child,
    .payment-detail-table td:first-child {
        width: 40% !important;
        min-width: 120px !important;
    }

    /* Page headers that use flex to put buttons next to titles */
    .admin-content > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    .admin-content > div[style*="display: flex"] > a.btn-primary,
    .admin-content > div[style*="display: flex"] > button {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    /* Breadcrumbs wrappers (in detail views) */
    .admin-content > div[style*="margin-bottom: 1.5rem"] {
        flex-wrap: wrap !important;
        gap: 0.5rem 1rem !important;
    }

    /* Title size scaling for admin pages */
    .admin-content h2[style*="font-size:"] {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
    }
    .admin-content p[style*="font-size: 0.9rem"] {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* Responsive header branding & badge sizing */
    .navbar-brand {
        font-size: 1.15rem !important;
        white-space: nowrap !important;
    }
    .admin-badge-pill {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.45rem !important;
        margin-left: 0.5rem !important;
    }
    .navbar-location {
        display: none !important;
    }

    /* Dashboard welcome banner scaling */
    .dash-hero {
        padding: 1.5rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    .dash-hero-art {
        display: none !important;
    }
    .dash-hero-text h2 {
        font-size: 1.35rem !important;
    }
    .dash-hero-text p {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14.5px !important; /* Decrease root font size to scale down rem typography and layouts */
    }
    .card {
        padding: 1rem !important; /* Tighten cards padding */
    }
    .admin-content {
        padding: 0.75rem !important; /* Tighten admin content padding */
        gap: 1.25rem !important;
    }
}

@media (max-width: 576px) {
    /* Center and shrink toast notifications */
    .toast-container {
        top: 80px !important;
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%) !important;
        max-width: 300px !important;
        width: 90% !important;
    }
    .toast {
        padding: 0.75rem 1rem !important;
        gap: 0.75rem !important;
    }
    .toast-indicator-badge {
        width: 24px !important;
        height: 24px !important;
    }
    .toast-indicator-badge svg {
        width: 12px !important;
        height: 12px !important;
    }
    .toast-title {
        font-size: 0.8rem !important;
    }
    .toast-message {
        font-size: 0.72rem !important;
    }

    /* Tighten modals on mobile */
    .auth-modal-card {
        max-width: 88% !important;
        padding: 1.25rem !important;
        border-radius: var(--radius-lg) !important;
    }
    .auth-modal-tabs {
        margin-bottom: 1rem !important;
        gap: 1rem !important;
    }
    .auth-tab-btn {
        font-size: 0.85rem !important;
        padding-bottom: 0.5rem !important;
    }
    .auth-pane-header {
        margin-bottom: 1rem !important;
    }
    .auth-pane-header h3 {
        font-size: 1.15rem !important;
    }
    .auth-pane-header p {
        font-size: 0.75rem !important;
    }
    .auth-modal-card .form-group {
        margin-bottom: 0.5rem !important;
    }
    .auth-modal-card .form-label {
        font-size: 0.72rem !important;
        margin-bottom: 0.25rem !important;
    }
    .auth-modal-card .form-control {
        font-size: 0.78rem !important;
        padding: 0.45rem 0.65rem !important;
    }
    .auth-modal-card button[type="submit"] {
        padding: 0.6rem !important;
        font-size: 0.8rem !important;
    }
    .auth-modal-card .auth-modal-close {
        font-size: 1.35rem !important;
        top: 0.75rem !important;
        right: 0.75rem !important;
    }
    #logoutModal h3 {
        font-size: 1.15rem !important;
    }
    #logoutModal p {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13.5px !important; /* Shrink even more on small viewports */
    }
    .navbar-brand {
        font-size: 1.05rem !important;
    }
    .admin-badge-pill {
        font-size: 0.6rem !important;
        padding: 0.1rem 0.35rem !important;
        margin-left: 0.35rem !important;
    }
}

/* Fixed Header on Mobile Viewports */
@media (max-width: 992px) {
    body.admin-body {
        padding-top: 70px !important;
    }
    body.admin-body .navbar-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    body:not(.admin-body) {
        padding-top: 64px !important;
    }
    body:not(.admin-body) .navbar-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
    }
}
