:root {
    --bp-primary: #142B45;
    --bp-secondary: #1D4268;
    --bp-accent: #F28C28;
    --bp-bg: #F5F7FA;
    --bp-surface: #FFFFFF;
    --bp-text: #253247;
    --bp-success: #198754;
    --bp-danger: #DC3545;
}

body {
    background-color: var(--bp-bg);
    color: var(--bp-text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.bg-bp-primary { background-color: var(--bp-primary) !important; }
.bg-bp-secondary { background-color: var(--bp-secondary) !important; }
.text-bp-primary { color: var(--bp-primary) !important; }
.text-bp-accent { color: var(--bp-accent) !important; }

.btn-bp-primary {
    background-color: var(--bp-primary);
    border-color: var(--bp-primary);
    color: #fff;
}
.btn-bp-primary:hover {
    background-color: var(--bp-secondary);
    border-color: var(--bp-secondary);
    color: #fff;
}

.btn-bp-accent {
    background-color: var(--bp-accent);
    border-color: var(--bp-accent);
    color: #fff;
    font-weight: 600;
}
.btn-bp-accent:hover {
    filter: brightness(0.92);
    color: #fff;
}

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--bp-primary);
    color: #e2e8f0;
    flex-shrink: 0;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    z-index: 1040;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

@media (min-width: 992px) {
    .admin-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
    }
    .admin-wrapper.sidebar-collapsed .admin-sidebar {
        margin-left: -260px;
        opacity: 0;
    }
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1035;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.78);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    margin: 0.12rem 0.65rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--bp-secondary);
    color: #fff;
}

.admin-sidebar .nav-link.active {
    border-left: 3px solid var(--bp-accent);
}

.admin-sidebar .nav-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    padding: 0.9rem 1.25rem 0.35rem;
    font-weight: 700;
}

.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: var(--bp-surface);
    border-bottom: 1px solid #e5e9f2;
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
        overflow-y: auto;
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
}

/* Cards & Stats */
.card {
    border: 1px solid #e7ecf3;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(20, 43, 69, 0.04);
}

.stat-card {
    transition: transform 0.15s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Customer Hero & Sections */
.hero-section {
    background: linear-gradient(135deg, var(--bp-primary) 0%, var(--bp-secondary) 100%);
    color: #fff;
}

.step-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bp-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.wa-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1030;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}
.wa-float:hover {
    color: #fff;
    transform: scale(1.06);
}

/* Loading overlay */
#bp-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

@media print {
    .no-print { display: none !important; }
    body { background: #fff !important; }
}

/* Scroll Fade-In Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Horizontal Scroll-Snap Carousel */
@media (max-width: 767.98px) {
    .mobile-scroll-row {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        scrollbar-width: none;
    }
    .mobile-scroll-row::-webkit-scrollbar {
        display: none;
    }
    .mobile-scroll-row > [class*="col-"] {
        flex: 0 0 82%;
        max-width: 82%;
        scroll-snap-align: start;
        padding-left: 0;
        padding-right: 0;
    }
}
