/* ─── Variables ─────────────────────────────────────────── */
:root {
    --green:        #00C853;
    --green-dark:   #00702E;
    --green-glow:   rgba(0,200,83,0.15);
    --blue:         #1565C0;
    --gold:         #FFC107;
    --red:          #D32F2F;
    --bg:           #0A0E1A;
    --card:         #131929;
    --surface:      #1C2436;
    --surface2:     #1A2540;
    --text:         #ECF0F1;
    --text-muted:   #90A4AE;
    --border:       rgba(255,255,255,0.07);
    --radius-sm:    10px;
    --radius:       16px;
    --radius-lg:    24px;
    --shadow:       0 8px 32px rgba(0,0,0,0.4);
    --transition:   0.2s ease;
}

/* ─── Base ──────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

.dark-body { background: var(--bg); color: var(--text); }

.auth-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #0A0E1A 0%, #0D2137 50%, #0A1628 100%);
    display: flex; align-items: center; justify-content: center;
}

/* ─── Sidebar ───────────────────────────────────────────── */
.sidebar {
    width: 230px;
    min-width: 230px;
    background: #0D1423;
    border-right: 1px solid var(--border);
    padding: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
}

.logo-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green), var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: white;
}

.logo-text { font-size: 18px; font-weight: 700; color: white; }

.sidebar-nav {
    list-style: none;
    padding: 16px 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
}

.sidebar-link i { font-size: 18px; }

.sidebar-link:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.sidebar-link.active {
    background: var(--green-glow);
    color: var(--green);
    border-left: 3px solid var(--green);
}

.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); }

/* ─── Main Content ──────────────────────────────────────── */
.main-content { background: var(--bg); padding: 32px; }

/* ─── Cards ─────────────────────────────────────────────── */
.sp-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow);
}

.summary-card {
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow);
}

.summary-card::after {
    content: '';
    position: absolute;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    right: -30px; bottom: -30px;
}

.summary-card.green  { background: linear-gradient(135deg, #00C853, #00702E); }
.summary-card.blue   { background: linear-gradient(135deg, #1565C0, #003C8F); }
.summary-card.gold   { background: linear-gradient(135deg, #FF8F00, #E65100); }
.summary-card.purple { background: linear-gradient(135deg, #6A1B9A, #38006B); }

.summary-card .label {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.summary-card .value {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

/* ─── Stat Badge ─────────────────────────────────────────── */
.stat-pill {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
}

.stat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ─── Table ─────────────────────────────────────────────── */
.sp-table { width: 100%; border-collapse: collapse; }

.sp-table thead th {
    background: var(--surface);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border: none;
}

.sp-table thead th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.sp-table thead th:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.sp-table tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
.sp-table tbody tr:last-child { border-bottom: none; }
.sp-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.sp-table tbody td {
    padding: 14px 16px;
    color: var(--text);
    font-size: 14px;
    vertical-align: middle;
}

/* ─── Status Badges ─────────────────────────────────────── */
.badge-paid    { background: rgba(0,200,83,0.15);  color: #00C853;  border-radius: 8px; padding: 3px 10px; font-size: 11px; font-weight: 600; }
.badge-pending { background: rgba(255,193,7,0.15); color: #FFC107; border-radius: 8px; padding: 3px 10px; font-size: 11px; font-weight: 600; }
.badge-failed  { background: rgba(211,47,47,0.15); color: #D32F2F;  border-radius: 8px; padding: 3px 10px; font-size: 11px; font-weight: 600; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-sp-primary {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-sp-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,200,83,0.3);
    color: white;
}

.btn-sp-outline {
    background: transparent;
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-sp-outline:hover {
    background: var(--green-glow);
    color: var(--green);
}

/* ─── Forms ─────────────────────────────────────────────── */
.sp-input {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    width: 100%;
    transition: var(--transition);
    outline: none;
}

.sp-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}

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

.sp-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

/* ─── Auth Card ──────────────────────────────────────────── */
.auth-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 36px;
    width: 420px;
    box-shadow: 0 32px 64px rgba(0,0,0,0.5);
}

.auth-logo {
    width: 80px; height: 80px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--green), var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 20px;
}

/* ─── QR Card ────────────────────────────────────────────── */
.qr-container {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    display: inline-block;
}

/* ─── Alert ──────────────────────────────────────────────── */
.sp-alert { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; border: none; }
.sp-alert-success { background: rgba(0,200,83,0.1);  color: #00C853; }
.sp-alert-danger   { background: rgba(211,47,47,0.1); color: #D32F2F; }
.sp-alert-info     { background: rgba(255,193,7,0.1); color: #FFC107; }

/* ─── Amount display ─────────────────────────────────────── */
.amount-text { color: var(--green); font-weight: 700; }

/* ─── Customer Avatar ─────────────────────────────────────── */
.customer-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; color: white;
    flex-shrink: 0;
}

/* ─── Page Header ────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-title { font-size: 26px; font-weight: 700; color: white; }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #334; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { padding: 16px; }
}
