/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(to right, #0056b3, #007bff);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s;
}

header nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

header .icons {
    display: flex;
    gap: 15px;
    font-size: 20px;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Alert Banner */
.alert {
    background: #ffeeee;
    border-left: 5px solid #dc3545;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.alert button:hover {
    background: #218838;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Balance Card */
.balance-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-left: 5px solid #007bff;
}

.balance-card h3 {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-card .amount {
    font-size: 32px;
    font-weight: 700;
    color: #007bff;
    margin: 10px 0;
}

.accounts-list {
    margin-top: 20px;
}

.account-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.account-item .info {
    font-size: 14px;
    color: #666;
}

.account-item .amount {
    font-weight: 600;
    color: #333;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #007bff;
}

.service-card h4 {
    color: #333;
    margin-bottom: 10px;
}

/* Transactions Section */
.transactions-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.transactions-card h3 {
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 12px;
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

table tr:hover {
    background: #f8fdff;
}

.pending {
    color: #ffc107;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 14px;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    header nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

.positive {
    color: #28a745 !important; /* Green */
    font-weight: bold;
}

.negative {
    color: #dc3545 !important; /* Red */
    font-weight: bold;
}