/* ============================================================
   Seller App — mobile-first app-shell styling
   Dipakai bareng Bootstrap 5 (CDN) untuk komponen dasar (card, form, dsb).
   File ini cuma nambahin "rasa aplikasi mobile": top bar sticky,
   bottom nav fixed + safe-area, dan beberapa utility kecil.
   ============================================================ */

:root {
    --seller-primary: #2563eb;
    --seller-primary-dark: #1d4ed8;
    --seller-bg: #f3f4f6;
    --seller-bottomnav-h: 64px;
}

html, body {
    background: var(--seller-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Batasi lebar di layar besar supaya tetap terasa "app" bukan web biasa,
   tapi full-width secara natural di HP (mobile-first). */
.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--seller-bg);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ── Top App Bar ─────────────────────────────────────────── */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.app-topbar h1 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}
.app-topbar .app-topbar-sub {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ── Content area ────────────────────────────────────────── */
.app-content {
    flex: 1;
    padding: 16px;
    padding-bottom: calc(var(--seller-bottomnav-h) + 24px + env(safe-area-inset-bottom));
}

/* ── Bottom Navigation (fixed, ala app mobile) ──────────────── */
.app-bottomnav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
}
.app-bottomnav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.app-bottomnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px 6px;
    text-decoration: none;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
    transition: color .15s ease;
}
.app-bottomnav a i {
    font-size: 1.25rem;
    line-height: 1;
}
.app-bottomnav a.active {
    color: var(--seller-primary);
}

/* ── Auth pages (login) — full-bleed, di luar app-shell width lock ── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(160deg, var(--seller-primary) 0%, #1e3a8a 100%);
}
.auth-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--seller-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.btn-seller-primary {
    background: var(--seller-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding: 12px;
}
.btn-seller-primary:hover, .btn-seller-primary:active {
    background: var(--seller-primary-dark);
    color: #fff;
}
.form-control-seller {
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    padding: 12px 14px;
}
.form-control-seller:focus {
    border-color: var(--seller-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ── Stat cards (dashboard) ─────────────────────────────────── */
.stat-tile {
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.stat-tile .stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}
.stat-tile .stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}
.badge-diff-up {
    color: #16a34a;
    background: #dcfce7;
}
.badge-diff-down {
    color: #dc2626;
    background: #fee2e2;
}

.card-seller {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: none;
}

/* Simple CSS bar chart (7 hari) — tanpa dependency JS chart library */
.bar-chart-7d {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 110px;
}
.bar-chart-7d .bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}
.bar-chart-7d .bar {
    width: 100%;
    max-width: 26px;
    background: var(--seller-primary);
    border-radius: 6px 6px 0 0;
    min-height: 3px;
}
.bar-chart-7d .bar-label {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 4px;
}

.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}
.coming-soon i {
    font-size: 3rem;
    margin-bottom: 12px;
    color: #d1d5db;
}
