/* ============================================================
   BigKarmaTech Logistics - Design System & Main Stylesheet
   Mobile-first, app-like experience
   ============================================================ */

/* ---- DESIGN TOKENS ---- */
:root {
    --bkt-purple:      #6C3CE1;
    --bkt-purple-light:#8B5CF6;
    --bkt-purple-dark: #4C1D95;
    --bkt-amber:       #F59E0B;
    --bkt-green:       #10B981;
    --bkt-red:         #EF4444;
    --bkt-blue:        #3B82F6;
    --bkt-cyan:        #06B6D4;
    --bkt-orange:      #F97316;

    --surface:         #F8F7FF;
    --surface-card:    #FFFFFF;
    --surface-alt:     #F1EFF9;
    --border-color:    #E8E4F5;
    --text-primary:    #1A1035;
    --text-secondary:  #6B7280;
    --text-muted:      #9CA3AF;

    --font-family:     'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --border-radius:   16px;
    --border-radius-sm:10px;
    --border-radius-lg:24px;
    --shadow-sm:       0 1px 3px rgba(108,60,225,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow:          0 4px 16px rgba(108,60,225,.12), 0 1px 3px rgba(0,0,0,.06);
    --shadow-lg:       0 10px 32px rgba(108,60,225,.18), 0 4px 8px rgba(0,0,0,.08);
    --transition:      all .22s cubic-bezier(.4,0,.2,1);
    --nav-height:      64px;
    --bottom-nav-h:    68px;
}

/* DARK MODE */
[data-bs-theme="dark"] {
    --surface:         #0F0A1E;
    --surface-card:    #1A1035;
    --surface-alt:     #221642;
    --border-color:    #2D1F50;
    --text-primary:    #F3F0FF;
    --text-secondary:  #A89FBF;
    --text-muted:      #6B5E84;
}

/* ---- BASE ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body.bkt-body {
    font-family: var(--font-family);
    background: var(--surface);
    color: var(--text-primary);
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

/* ============================================================
   TOP NAVIGATION
   ============================================================ */
.bkt-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.bkt-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bkt-purple);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.bkt-logo span { color: var(--bkt-amber); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ============================================================
   SIDEBAR (Admin)
   ============================================================ */
.bkt-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 256px;
    height: 100dvh;
    background: var(--surface-card);
    border-right: 1px solid var(--border-color);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-brand {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 12px 4px;
    margin-top: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--surface-alt); color: var(--bkt-purple); }
.sidebar-link.active { background: linear-gradient(135deg, rgba(108,60,225,.15), rgba(139,92,246,.1)); color: var(--bkt-purple); font-weight: 600; }
.sidebar-link .bi { font-size: 1rem; width: 20px; flex-shrink: 0; }

/* Sidebar Overlay */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1099; }
.sidebar-overlay.show { display: block; }

/* Main content offset for sidebar */
.admin-main { margin-left: 256px; min-height: 100dvh; }

/* ============================================================
   BOTTOM NAVIGATION (Mobile)
   ============================================================ */
.bkt-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-h);
    background: var(--surface-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(108,60,225,.08);
}

.bkt-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 0;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.bkt-bottom-nav .nav-item .bi { font-size: 1.3rem; transition: var(--transition); }
.bkt-bottom-nav .nav-item.active { color: var(--bkt-purple); }
.bkt-bottom-nav .nav-item.active .bi { transform: translateY(-2px); }
.bkt-bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--bkt-purple);
    border-radius: 0 0 4px 4px;
}

/* Page padding for bottom nav */
.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + 16px); }

/* ============================================================
   FLOATING ACTION BUTTON
   ============================================================ */
.bkt-fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + 16px);
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bkt-purple), var(--bkt-purple-light));
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
}
.bkt-fab:hover { transform: scale(1.08) translateY(-2px); color: white; box-shadow: 0 12px 36px rgba(108,60,225,.35); }
.bkt-fab:active { transform: scale(0.96); }

/* ============================================================
   CARDS
   ============================================================ */
.bkt-card {
    background: var(--surface-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    transition: var(--transition);
}
.bkt-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.card-gradient-purple { background: linear-gradient(135deg, var(--bkt-purple), var(--bkt-purple-light)); color: white; border: none; }
.card-gradient-amber  { background: linear-gradient(135deg, var(--bkt-amber), #FCD34D); color: white; border: none; }
.card-gradient-green  { background: linear-gradient(135deg, var(--bkt-green), #34D399); color: white; border: none; }
.card-gradient-blue   { background: linear-gradient(135deg, var(--bkt-blue), #60A5FA); color: white; border: none; }
.card-gradient-orange { background: linear-gradient(135deg, var(--bkt-orange), #FB923C); color: white; border: none; }
.card-gradient-cyan   { background: linear-gradient(135deg, var(--bkt-cyan), #22D3EE); color: white; border: none; }

/* Stat Card */
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-icon.purple { background: rgba(108,60,225,.12); color: var(--bkt-purple); }
.stat-icon.amber  { background: rgba(245,158,11,.12); color: var(--bkt-amber); }
.stat-icon.green  { background: rgba(16,185,129,.12); color: var(--bkt-green); }
.stat-icon.red    { background: rgba(239,68,68,.12);  color: var(--bkt-red); }
.stat-icon.blue   { background: rgba(59,130,246,.12); color: var(--bkt-blue); }
.stat-icon.cyan   { background: rgba(6,182,212,.12);  color: var(--bkt-cyan); }

.stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--text-primary); }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; margin-top: 2px; }
.stat-change { font-size: 0.72rem; font-weight: 600; }
.stat-change.up   { color: var(--bkt-green); }
.stat-change.down { color: var(--bkt-red); }

/* Delivery Card */
.delivery-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.delivery-card:hover { border-color: var(--bkt-purple); box-shadow: var(--shadow); color: inherit; }
.delivery-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: var(--surface-alt);
    color: var(--bkt-purple);
}
.delivery-meta { flex: 1; min-width: 0; }
.delivery-tracking { font-size: 0.8rem; font-weight: 700; color: var(--bkt-purple); }
.delivery-address { font-size: 0.82rem; color: var(--text-primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delivery-sub { font-size: 0.72rem; color: var(--text-secondary); margin-top: 1px; }

/* Wallet Card */
.wallet-card {
    background: linear-gradient(135deg, #6C3CE1 0%, #8B5CF6 50%, #06B6D4 100%);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.wallet-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
}
.wallet-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
}
.wallet-label { font-size: 0.78rem; font-weight: 500; opacity: .8; letter-spacing: .3px; }
.wallet-balance { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; margin: 4px 0 16px; }

/* ============================================================
   QUICK ACTIONS
   ============================================================ */
.quick-actions { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.quick-actions::-webkit-scrollbar { display: none; }

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    padding: 14px 8px;
    border-radius: var(--border-radius-sm);
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    flex-shrink: 0;
}
.quick-action-btn:hover { border-color: var(--bkt-purple); background: rgba(108,60,225,.05); color: var(--bkt-purple); transform: translateY(-2px); }
.quick-action-btn .qa-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.quick-action-btn span { font-size: 0.72rem; font-weight: 600; text-align: center; }

/* ============================================================
   STATUS TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--border-color); }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -24px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--surface-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    transition: var(--transition);
}
.timeline-dot.completed { background: var(--bkt-green); border-color: var(--bkt-green); color: white; }
.timeline-dot.active    { background: var(--bkt-purple); border-color: var(--bkt-purple); color: white; animation: pulse 1.5s infinite; }
.timeline-dot.cancelled { background: var(--bkt-red); border-color: var(--bkt-red); color: white; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(108,60,225,.4)} 50%{box-shadow:0 0 0 6px rgba(108,60,225,0)} }

.timeline-title { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.timeline-time  { font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; }
.timeline-desc  { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }

/* ============================================================
   MAP
   ============================================================ */
.map-container { border-radius: var(--border-radius); overflow: hidden; border: 1px solid var(--border-color); }
#delivery-map, #tracking-map, #rider-map { width: 100%; border-radius: var(--border-radius); }

/* ============================================================
   FORMS
   ============================================================ */
.bkt-form-group { margin-bottom: 18px; }
.bkt-label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.bkt-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid var(--border-color);
    background: var(--surface-card);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}
.bkt-input:focus { border-color: var(--bkt-purple); box-shadow: 0 0 0 3px rgba(108,60,225,.12); }
.bkt-input::placeholder { color: var(--text-muted); }

.input-icon-wrapper { position: relative; }
.input-icon-wrapper .bkt-input { padding-left: 44px; }
.input-icon-wrapper .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1rem; pointer-events: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-bkt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn-bkt-primary { background: linear-gradient(135deg, var(--bkt-purple), var(--bkt-purple-light)); color: white; }
.btn-bkt-primary:hover { box-shadow: 0 6px 20px rgba(108,60,225,.35); transform: translateY(-1px); color: white; }
.btn-bkt-secondary { background: var(--surface-alt); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-bkt-secondary:hover { background: var(--border-color); color: var(--text-primary); }
.btn-bkt-success { background: linear-gradient(135deg, var(--bkt-green), #34D399); color: white; }
.btn-bkt-danger  { background: linear-gradient(135deg, var(--bkt-red), #F87171); color: white; }
.btn-bkt-outline { background: transparent; border: 1.5px solid var(--bkt-purple); color: var(--bkt-purple); }
.btn-bkt-outline:hover { background: rgba(108,60,225,.08); color: var(--bkt-purple); }
.btn-bkt:disabled, .btn-bkt.loading { opacity: .65; cursor: not-allowed; pointer-events: none; }
.btn-bkt-full { width: 100%; }

/* ============================================================
   BADGE & STATUS
   ============================================================ */
.bkt-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.bkt-badge-purple { background: rgba(108,60,225,.12); color: var(--bkt-purple); }
.bkt-badge-green  { background: rgba(16,185,129,.12); color: var(--bkt-green); }
.bkt-badge-amber  { background: rgba(245,158,11,.12); color: var(--bkt-amber); }
.bkt-badge-red    { background: rgba(239,68,68,.12);  color: var(--bkt-red); }
.bkt-badge-blue   { background: rgba(59,130,246,.12); color: var(--bkt-blue); }

/* Live status dot */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.status-dot.online  { background: var(--bkt-green); box-shadow: 0 0 0 2px rgba(16,185,129,.3); animation: pulse 2s infinite; }
.status-dot.offline { background: var(--text-muted); }
.status-dot.busy    { background: var(--bkt-amber); box-shadow: 0 0 0 2px rgba(245,158,11,.3); }

/* ============================================================
   AVATAR
   ============================================================ */
.bkt-avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bkt-purple), var(--bkt-purple-light));
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.section-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.section-link  { font-size: 0.8rem; font-weight: 600; color: var(--bkt-purple); text-decoration: none; }
.section-link:hover { text-decoration: underline; }

/* ============================================================
   CHAT
   ============================================================ */
.chat-container { display: flex; flex-direction: column; height: 100%; }
.chat-messages  { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.chat-bubble { max-width: 75%; }
.chat-bubble.sent     { align-self: flex-end; }
.chat-bubble.received { align-self: flex-start; }

.bubble-body {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.875rem;
    line-height: 1.4;
    word-break: break-word;
}
.chat-bubble.sent .bubble-body     { background: var(--bkt-purple); color: white; border-bottom-right-radius: 4px; }
.chat-bubble.received .bubble-body { background: var(--surface-alt); color: var(--text-primary); border-bottom-left-radius: 4px; }
.bubble-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 3px; padding: 0 2px; }
.chat-bubble.sent .bubble-time     { text-align: right; }

.chat-input-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--surface-card);
}
.chat-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 24px;
    border: 1.5px solid var(--border-color);
    background: var(--surface-alt);
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
    resize: none;
    max-height: 100px;
}
.chat-input:focus { border-color: var(--bkt-purple); }

/* ============================================================
   TABLES
   ============================================================ */
.bkt-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.bkt-table thead th {
    background: var(--surface-alt);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
.bkt-table tbody tr { transition: var(--transition); }
.bkt-table tbody tr:hover td { background: var(--surface-alt); }
.bkt-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); font-size: 0.875rem; vertical-align: middle; }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.bkt-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--bkt-purple);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--surface-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    gap: 16px;
    transition: opacity .4s;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.bkt-toast-container {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
}
.bkt-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    background: var(--surface-card);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--bkt-purple);
    animation: toastIn .3s ease;
    font-size: 0.85rem;
}
.bkt-toast.success { border-color: var(--bkt-green); }
.bkt-toast.error   { border-color: var(--bkt-red); }
.bkt-toast.warning { border-color: var(--bkt-amber); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F0A1E 0%, #1A1035 50%, #221642 100%);
    padding: 24px 16px;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface-card);
    border-radius: var(--border-radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo-text { font-size: 1.8rem; font-weight: 800; color: var(--bkt-purple); }
.auth-logo .logo-text span { color: var(--bkt-amber); }
.auth-logo p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }
.auth-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.auth-sub   { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 24px; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.page-content { padding: 20px 16px; }
.section-gap  { margin-bottom: 24px; }

/* Responsive grid for stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-content { border-radius: var(--border-radius); border: 1px solid var(--border-color); background: var(--surface-card); }
.modal-header  { border-bottom: 1px solid var(--border-color); padding: 16px 20px; }
.modal-footer  { border-top: 1px solid var(--border-color); padding: 16px 20px; }

/* ============================================================
   RIDER STATUS WIDGET
   ============================================================ */
.availability-toggle { position: relative; display: inline-block; }
.availability-toggle input { display: none; }
.toggle-track {
    width: 60px;
    height: 30px;
    background: var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    transition: var(--transition);
}
.availability-toggle input:checked + .toggle-track { background: var(--bkt-green); }
.availability-toggle input:checked + .toggle-track::after { transform: translateX(30px); }

/* ============================================================
   KYC / DOCUMENT UPLOAD
   ============================================================ */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface-alt);
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--bkt-purple); background: rgba(108,60,225,.05); }
.upload-zone .upload-icon { font-size: 2rem; color: var(--text-muted); margin-bottom: 8px; }
.upload-zone p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; }
.upload-zone small { font-size: 0.72rem; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
    .bkt-sidebar { transform: translateX(-100%); }
    .bkt-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .auth-card { padding: 28px 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .wallet-balance { font-size: 1.8rem; }
}

@media (min-width: 768px) {
    .bkt-bottom-nav { display: none !important; }
    .bkt-fab { bottom: 24px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .page-content { padding: 24px; }
}

@media (min-width: 992px) {
    .bkt-sidebar { transform: translateX(0) !important; }
    .sidebar-overlay { display: none !important; }
}

/* Print */
@media print {
    .bkt-sidebar, .bkt-topbar, .bkt-bottom-nav, .bkt-fab { display: none !important; }
    .admin-main { margin-left: 0 !important; }
}
