/* ─── Variables ──────────────────────────────────────────────── */
:root {
    --primary:       #1a56db;
    --success:       #059669;
    --danger:        #b91c1c;
    --sidebar-bg:    #1e293b;
    --customer-bg:   #4169e1;   /* royal blue */
}

/* ─── Base ───────────────────────────────────────────────────── */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f6f8;
}

/* ─── Customer page background ───────────────────────────────── */
body.customer-page {
    background-color: var(--customer-bg);
    background-image: radial-gradient(ellipse at 70% 20%, #5b80f0 0%, transparent 55%),
                      radial-gradient(ellipse at 20% 80%, #2a4fc7 0%, transparent 50%);
    background-attachment: fixed;
}

body.customer-page main {
    background: transparent;
}

body.customer-page .container > *,
body.customer-page .card {
    --bs-card-bg: #ffffff;
}

body.customer-page footer {
    background: rgba(0, 0, 40, .25) !important;
    border-top-color: rgba(255, 255, 255, .15) !important;
    color: rgba(255, 255, 255, .8);
}

body.customer-page footer p,
body.customer-page footer a {
    color: rgba(255, 255, 255, .75) !important;
}

/* ─── Customer page button overrides ─────────────────────────── */
body.customer-page .btn-primary {
    background-color: var(--customer-bg);
    border-color:     var(--customer-bg);
    color: #fff;
}

body.customer-page .btn-primary:hover,
body.customer-page .btn-primary:focus,
body.customer-page .btn-primary:active {
    background-color: #3358cc;
    border-color:     #3358cc;
    color: #fff;
}

body.customer-page .btn-outline-primary {
    border-color: var(--customer-bg);
    color:        var(--customer-bg);
}

body.customer-page .btn-outline-primary:hover,
body.customer-page .btn-outline-primary:focus,
body.customer-page .btn-outline-primary:active {
    background-color: var(--customer-bg);
    border-color:     var(--customer-bg);
    color: #fff;
}

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* ─── Stat cards ─────────────────────────────────────────────── */
.stat-card {
    border-left: 4px solid var(--primary);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card.stat-success { border-left-color: var(--success); }
.stat-card.stat-danger  { border-left-color: var(--danger);  }
.stat-card.stat-warning { border-left-color: #d97706; }
.stat-card.stat-info    { border-left-color: #0284c7; }

/* ─── Fee display ────────────────────────────────────────────── */
#fee-display {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--success);
}

/* ─── Order ID ───────────────────────────────────────────────── */
.order-id {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    letter-spacing: .05em;
}

/* ─── Tables ─────────────────────────────────────────────────── */
.table th {
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    white-space: nowrap;
}

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
    font-size: .72rem;
    font-weight: 600;
    padding: .35em .7em;
    border-radius: .375rem;
}

/* ─── Order timeline ─────────────────────────────────────────── */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .85rem;
    z-index: 1;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e0e7ff;
}

.timeline-content {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    flex: 1;
}

.timeline-content .time {
    font-size: .78rem;
    color: #6c757d;
}

/* ─── Admin sidebar ──────────────────────────────────────────── */
.sidebar {
    min-height: 100vh;
    background: var(--sidebar-bg);
    width: 240px;
    flex-shrink: 0;
}

.sidebar .nav-link {
    color: #94a3b8;
    border-radius: 6px;
    padding: .6rem 1rem;
    margin-bottom: 2px;
    font-size: .9rem;
    transition: background .15s, color .15s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 6px;
}

.sidebar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.25rem 1rem 1rem;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: .5rem;
}

/* ─── Main content ───────────────────────────────────────────── */
.main-content {
    flex: 1;
    overflow-x: hidden;
}

/* ─── Proof-of-payment viewer ────────────────────────────────── */
.pop-preview img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* ─── Payment info box ───────────────────────────────────────── */
.payment-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 24px;
}

.payment-box .acc-number {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .1em;
}
