:root {
    --primary: #0d1b2a;
    --secondary: #1b263b;
    --light-bg: #f3f5fb;
    --white: #ffffff;
    --muted: #6c757d;
    --accent: #0d1b2a;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--light-bg);
}

.dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 15px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    width: 180px;
}

.last-login {
    font-size: 14px;
    color: var(--muted);
}

.balance-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
}

.balance-top h2 {
    margin: 0;
    font-size: 20px;
}

.balance-amount {
    font-size: 28px;
    font-weight: 700;
}

.balance-sub {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
}

.balance-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 12px;
}

.transaction-section {
    margin-top: 20px;
}

.transaction-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-title h3 {
    margin: 0;
}

.transaction-count {
    font-size: 14px;
    color: var(--muted);
}

.transaction-list {
    margin-top: 15px;
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    max-height: 500px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 10px;
    border-bottom: 1px solid #f1f3f6;
}

.transaction-item:last-child {
    border-bottom: none;
}

.trans-left {
    display: flex;
    flex-direction: column;
}

.trans-type {
    font-weight: 700;
    color: var(--primary);
}

.trans-merchant {
    font-size: 13px;
    color: var(--muted);
}

.trans-date {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.trans-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.trans-amount {
    font-weight: 700;
    margin-bottom: 8px;
}

.trans-ref {
    font-size: 12px;
    color: var(--muted);
}

.trans-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    color: #fff;
}

.success {
    background: var(--success);
}

.pending {
    background: var(--warning);
}

.failed {
    background: var(--danger);
}

@media (max-width: 768px) {
    .dash-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo img {
        width: 150px;
    }

    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .trans-right {
        align-items: flex-start;
        margin-top: 10px;
    }
}