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

/* ============================================================
   CSS DESIGN SYSTEM - MAGIC WASHH
   ============================================================ */
:root {
    /* Core Backgrounds */
    --bg-base:       #060c1a;
    --bg-primary:    #0a1628;
    --bg-secondary:  #0f1f3d;
    --bg-card:       rgba(15, 31, 61, 0.65);
    --bg-input:      rgba(6, 12, 26, 0.70);
    --bg-hover:      rgba(255, 255, 255, 0.04);

    /* Borders */
    --border:        rgba(255, 255, 255, 0.07);
    --border-light:  rgba(255, 255, 255, 0.13);
    --border-glow:   rgba(0, 212, 255, 0.25);

    /* Typography */
    --text-primary:   #f0f6ff;
    --text-secondary: #8ba3c7;
    --text-muted:     #4a6080;

    /* Brand Palette */
    --cyan:           #00d4ff;
    --cyan-dark:      #0090cc;
    --blue:           #3b82f6;
    --grad-brand:     linear-gradient(135deg, #00d4ff 0%, #3b82f6 100%);
    --grad-brand-soft:linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(59,130,246,0.15) 100%);

    /* Status Colors */
    --s-booked:      #3b82f6;
    --s-waiting:     #f59e0b;
    --s-washing:     #a855f7;
    --s-polishing:   #ec4899;
    --s-ready:       #10b981;
    --s-completed:   #475569;

    /* Layout */
    --sidebar-w:     260px;
    --topbar-h:      72px;
    --radius:        14px;
    --radius-sm:     8px;
    --font:          'Outfit', sans-serif;
    --ease:          cubic-bezier(0.4, 0, 0.2, 1);
    --transition:    all 0.25s var(--ease);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-base);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #0d1b35 0%, #091425 100%);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0; top: 0;
    z-index: 200;
    padding: 0;
    overflow: hidden;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 20px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.brand-logo {
    width: 44px; height: 44px;
    background: var(--grad-brand);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 22px;
    color: var(--bg-base);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.45), 0 4px 12px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
    font-weight: 800; font-size: 16px; letter-spacing: 1px;
    background: var(--grad-brand);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.brand-sub { font-size: 10px; color: var(--text-muted); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }

/* Nav */
.nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 10px;
    margin-bottom: 8px;
    margin-top: 4px;
}

.nav-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.nav-item a i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    transition: var(--transition);
}

.nav-item a:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-item.active a {
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.08);
    font-weight: 600;
}

.nav-item.active a::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 3px;
    background: var(--grad-brand);
    border-radius: 0 4px 4px 0;
}

.nav-item.active a i { color: var(--cyan); }

/* Sidebar Footer */
.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }

.staff-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.staff-avatar {
    width: 38px; height: 38px;
    background: var(--grad-brand);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    color: var(--bg-base);
    flex-shrink: 0;
}

.staff-info { display: flex; flex-direction: column; overflow: hidden; }
.staff-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-role { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-wrapper {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    height: var(--topbar-h);
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 22, 40, 0.8);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky; top: 0; z-index: 100;
}

.search-box { position: relative; width: 340px; }

.search-box i {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); font-size: 14px; pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font); font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
    background: var(--bg-secondary);
}

.topbar-right { display: flex; align-items: center; gap: 16px; }

.topbar-date {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-secondary);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 7px 16px;
}

.topbar-date i { color: var(--cyan); }

/* New Booking topbar button */
.topbar-action {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    background: var(--grad-brand);
    color: var(--bg-base);
    border-radius: 50px;
    font-size: 13px; font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,212,255,0.3);
    transition: var(--transition);
}

.topbar-action:hover { box-shadow: 0 6px 20px rgba(0,212,255,0.5); transform: translateY(-1px); }

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-container { padding: 32px 36px; flex: 1; }

.page-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 32px;
}

.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; }

.page-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 5px; }

/* ============================================================
   KPI CARDS
   ============================================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

.kpi-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: transparent;
    transition: var(--transition);
}

.kpi-card:hover { transform: translateY(-4px); border-color: var(--border-light); }
.kpi-card:hover::after { opacity: 1; }

.kpi-card.blue::after  { background: var(--s-booked); }
.kpi-card.yellow::after { background: var(--s-waiting); }
.kpi-card.purple::after { background: var(--s-washing); }
.kpi-card.green::after  { background: var(--s-ready); }
.kpi-card.slate::after  { background: var(--s-completed); }

.kpi-card:hover.blue   { box-shadow: 0 8px 24px rgba(59,130,246,0.12); }
.kpi-card:hover.yellow { box-shadow: 0 8px 24px rgba(245,158,11,0.12); }
.kpi-card:hover.purple { box-shadow: 0 8px 24px rgba(168,85,247,0.12); }
.kpi-card:hover.green  { box-shadow: 0 8px 24px rgba(16,185,129,0.12); }

.kpi-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    margin-bottom: 14px;
}

.kpi-card.blue .kpi-icon   { background: rgba(59,130,246,0.15); color: var(--s-booked); }
.kpi-card.yellow .kpi-icon { background: rgba(245,158,11,0.15); color: var(--s-waiting); }
.kpi-card.purple .kpi-icon { background: rgba(168,85,247,0.15); color: var(--s-washing); }
.kpi-card.green .kpi-icon  { background: rgba(16,185,129,0.15); color: var(--s-ready); }
.kpi-card.slate .kpi-icon  { background: rgba(71,85,105,0.20); color: var(--s-completed); }

.kpi-value { font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.kpi-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

/* ============================================================
   SECTION CARDS
   ============================================================ */
.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 20px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-title-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-icon i {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
}

/* ============================================================
   QUEUE CARDS
   ============================================================ */
.queue-container { display: flex; flex-direction: column; gap: 10px; }

.queue-card {
    background: rgba(6, 12, 26, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: var(--transition);
}

.queue-card:hover {
    border-color: var(--border-light);
    background: rgba(255,255,255,0.03);
    transform: translateX(3px);
}

.queue-left { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vehicle-num { font-size: 15px; font-weight: 700; letter-spacing: 0.5px; }
.vehicle-desc { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.queue-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ============================================================
   STATUS & PACKAGE BADGES
   ============================================================ */
.status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    border-radius: 50px;
    font-size: 11px; font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* Status badge variants */
.status-badge.booked     { background: rgba(59,130,246,0.15);  color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }
.status-badge.waiting    { background: rgba(245,158,11,0.15);  color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }
.status-badge.washing    { background: rgba(168,85,247,0.15);  color: #d8b4fe; border: 1px solid rgba(168,85,247,0.25); }
.status-badge.polishing  { background: rgba(236,72,153,0.15);  color: #fbcfe8; border: 1px solid rgba(236,72,153,0.25); }
.status-badge.ready      { background: rgba(16,185,129,0.15);  color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.status-badge.completed  { background: rgba(71,85,105,0.20);   color: #94a3b8; border: 1px solid rgba(71,85,105,0.25); }

.status-dot.booked    { background: var(--s-booked); }
.status-dot.waiting   { background: var(--s-waiting); }
.status-dot.washing   { background: var(--s-washing); }
.status-dot.polishing { background: var(--s-polishing); }
.status-dot.ready     { background: var(--s-ready); }
.status-dot.completed { background: var(--s-completed); }

/* Package badges */
.package-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-badge.quickwash   { background: rgba(59,130,246,0.12); color: #93c5fd; border: 1px solid rgba(59,130,246,0.2); }
.package-badge.silverwash  { background: rgba(148,163,184,0.12); color: #cbd5e1; border: 1px solid rgba(148,163,184,0.2); }
.package-badge.goldwash    { background: rgba(245,158,11,0.12); color: #fcd34d; border: 1px solid rgba(245,158,11,0.2); }
.package-badge.platinumwash { background: rgba(0,212,255,0.10); color: #67e8f9; border: 1px solid rgba(0,212,255,0.2); }
.package-badge.diamondwash { background: rgba(236,72,153,0.12); color: #fbcfe8; border: 1px solid rgba(236,72,153,0.2); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font); font-weight: 600; font-size: 13px;
    cursor: pointer; border: none; text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-brand);
    color: var(--bg-base);
    box-shadow: 0 4px 14px rgba(0,212,255,0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0,212,255,0.45);
    transform: translateY(-1px);
    color: var(--bg-base);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

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

.btn-danger {
    background: rgba(239,68,68,0.12);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.25);
}

.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ============================================================
   FORMS
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full-width { grid-column: span 2; }

label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

.form-control {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font); font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
    background: rgba(0,212,255,0.03);
}

/* Style all django form inputs */
input[type="text"], input[type="tel"], input[type="number"], input[type="date"],
input[type="time"], input[type="email"], input[type="password"], select, textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font); font-size: 14px;
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
}

input[type="text"]::placeholder, input[type="tel"]::placeholder,
input[type="number"]::placeholder, input[type="email"]::placeholder,
input[type="password"]::placeholder { color: var(--text-muted); }

input:focus, select:focus, textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
    background: rgba(0,212,255,0.03);
}

select option { background: var(--bg-secondary); color: var(--text-primary); }

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6);
    cursor: pointer;
}

/* ============================================================
   PACKAGE SELECTION CARDS
   ============================================================ */
.packages-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.package-select-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    background: rgba(6, 12, 26, 0.4);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.package-select-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-brand);
    opacity: 0;
    transition: var(--transition);
}

.package-select-card:hover { border-color: var(--border-light); transform: translateY(-2px); }

.package-select-card.selected {
    border-color: var(--cyan);
    background: rgba(0,212,255,0.06);
    box-shadow: 0 0 20px rgba(0,212,255,0.12);
}

.package-select-card.selected::before { opacity: 1; }

.selected-check {
    position: absolute;
    top: 12px; right: 12px;
    width: 22px; height: 22px;
    background: var(--grad-brand);
    border-radius: 50%;
    display: none;
    align-items: center; justify-content: center;
    font-size: 11px;
    color: var(--bg-base);
}

.package-select-card.selected .selected-check { display: flex; }

.pkg-tier {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted);
    margin-bottom: 6px;
}

.pkg-name { font-size: 16px; font-weight: 700; margin-bottom: 10px; }

.pkg-price {
    font-size: 22px; font-weight: 800;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 10px;
}

.pkg-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 6px;
}

/* ============================================================
   SERVICE SELECTION CARDS
   ============================================================ */
.services-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 10px;
}

.service-select-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    background: rgba(6, 12, 26, 0.35);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-select-card:hover { border-color: var(--border-light); }

.service-select-card.selected {
    border-color: var(--cyan);
    background: rgba(0,212,255,0.06);
}

.service-check-icon {
    width: 20px; height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    margin-top: 1px;
}

.service-select-card.selected .service-check-icon {
    background: var(--grad-brand);
    border-color: var(--cyan);
    color: var(--bg-base);
    font-size: 10px;
}

.service-info {}
.service-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.service-price { font-size: 12px; color: var(--cyan); font-weight: 700; }

/* ============================================================
   BOOKING SUMMARY PANEL
   ============================================================ */
.summary-panel {
    background: linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: calc(var(--topbar-h) + 20px);
}

.summary-panel-title { font-size: 15px; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.summary-label { color: var(--text-secondary); }
.summary-value { font-weight: 600; text-align: right; }

.summary-row.total {
    border-bottom: none;
    padding-top: 16px;
    font-size: 16px;
}

.summary-row.total .summary-label { font-weight: 700; color: var(--text-primary); }
.summary-row.total .summary-value { font-size: 22px; font-weight: 800; color: var(--cyan); }

/* ============================================================
   WORKFLOW STEPPER
   ============================================================ */
.stepper-wrapper {
    padding: 10px 0 24px;
    overflow-x: auto;
}

.workflow-status-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    min-width: 560px;
}

/* The connecting line */
.workflow-status-stepper::before {
    content: '';
    position: absolute;
    top: 16px; left: 16px; right: 16px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.stepper-dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.stepper-label {
    font-size: 11px; font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    transition: var(--transition);
}

.stepper-step.completed .stepper-dot {
    background: var(--s-ready);
    border-color: var(--s-ready);
    color: white;
}

.stepper-step.completed .stepper-label { color: var(--text-secondary); }

.stepper-step.active .stepper-dot {
    background: transparent;
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(0,212,255,0.12), 0 0 16px rgba(0,212,255,0.3);
}

.stepper-step.active .stepper-label { color: var(--cyan); font-weight: 700; }

/* ============================================================
   DETAIL PAGE LAYOUT
   ============================================================ */
.detail-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }

/* ============================================================
   TABLES
   ============================================================ */
.custom-table-container { overflow-x: auto; }

.custom-table { width: 100%; border-collapse: collapse; text-align: left; }

.custom-table th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    vertical-align: middle;
}

.custom-table tr:last-child td { border-bottom: none; }
.custom-table tbody tr:hover td { background: var(--bg-hover); }

/* ============================================================
   WHATSAPP LOG CONSOLE
   ============================================================ */
.whatsapp-log-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.whatsapp-log-item {
    background: rgba(6, 12, 26, 0.6);
    border: 1px solid var(--border);
    border-left: 3px solid var(--s-ready);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: var(--transition);
}

.whatsapp-log-item:hover { border-color: rgba(16,185,129,0.3); }
.whatsapp-log-item.failed { border-left-color: #ef4444; }

.whatsapp-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.whatsapp-log-meta { display: flex; align-items: center; gap: 8px; }

.wa-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(37,211,102,0.12);
    border: 1px solid rgba(37,211,102,0.2);
    color: #25d366;
    border-radius: 50px;
    padding: 3px 9px;
    font-size: 11px; font-weight: 700;
}

.log-status-tag {
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-hover);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 4px;
}

.whatsapp-log-time { font-size: 11px; color: var(--text-muted); }

.whatsapp-log-body {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
}

.log-response { font-size: 10px; color: var(--text-muted); margin-top: 8px; text-align: right; }

/* ============================================================
   INVOICE PAGE SPECIFIC
   ============================================================ */
.invoice-wrapper {
    max-width: 780px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 48px;
    backdrop-filter: blur(16px);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.invoice-number-tag {
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 6px;
}

.invoice-number-value {
    font-size: 26px; font-weight: 800;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.invoice-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ============================================================
   DASHBOARD GRID
   ============================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i { font-size: 32px; margin-bottom: 12px; opacity: 0.4; display: block; }
.empty-state p { font-size: 13px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.page-info { font-size: 13px; color: var(--text-secondary); padding: 0 8px; }

/* ============================================================
   ALERT / MESSAGE BANNERS
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    body { background: #ffffff !important; color: #000000 !important; display: block; }
    .sidebar, .topbar, .btn, .no-print { display: none !important; }
    .main-wrapper { margin-left: 0 !important; width: 100% !important; }
    .content-container { padding: 0 !important; }
    .section-card, .invoice-wrapper {
        border: none !important;
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        backdrop-filter: none !important;
    }
    .page-header { display: none; }
    * { color: #111 !important; -webkit-text-fill-color: #111 !important; }
    .invoice-number-value { font-size: 20px; font-weight: 800; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.text-cyan  { color: var(--cyan); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-bold  { font-weight: 700; }
.font-xs    { font-size: 11px; }
.font-sm    { font-size: 13px; }
.gap-2      { gap: 8px; }
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
