/* Grid layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

/* Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
    padding-bottom: 0;
    border: 1px solid rgba(21, 101, 192, 0.3);
    box-shadow: 0 20px 60px rgba(21, 101, 192, 0.15);
    transition: all 0.3s ease;
    width: 100%;
}

body.ocean-dark-mode .glass-card {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(21, 101, 192, 0.4);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(21, 101, 192, 0.2);
}

/* Credit Card */
.credit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    font-size: 20px;
    padding-top: 35px;

}

.credit-amount {
    font-size: 60px;
    font-weight: 700;
    color: #1976d2;
    line-height: 1.2;
}

body.ocean-dark-mode .credit-amount {
    color: #42a5f5;
}

.credit-label {
    font-size: 20px;
    color: #546e7a;
    margin-bottom: 120px;
    font-weight: 400;
}

body.ocean-dark-mode .credit-label {
    color: #94a3b8;
}

.credit-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.credit-stat {
    flex: 1;
    text-align: center;
}

.credit-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 5px;
}

body.ocean-dark-mode .credit-stat-value {
    color: #64b5f6;
}

.credit-stat-label {
    font-size: 14px;
    color: #546e7a;
    font-weight: 400;
}

body.ocean-dark-mode .credit-stat-label {
    color: #94a3b8;
}

.chart-container {
    height: 250px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* ===========================
   Responsive: Large Screens
=========================== */
@media (min-width: 1440px) {
    .dashboard-grid {
        grid-template-columns: 1.7fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .glass-card {
        padding: 35px;
        border-radius: 28px;
    }

    .credit-amount {
        font-size: 54px;
    }

    .credit-label {
        font-size: 18px;
    }

    .credit-stat-value {
        font-size: 28px;
    }

    .credit-stat-label {
        font-size: 16px;
    }

    .chart-container {
        height: 280px;
    }
}

/* ===========================
   Responsive: Tablets
=========================== */
@media (max-width: 1280px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 25px;
    }

    .glass-card {
        padding: 25px;
        border-radius: 20px;
    }

    .credit-amount {
        font-size: 40px;
    }

    .credit-label {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .credit-stat-value {
        font-size: 20px;
    }

    .credit-stat-label {
        font-size: 13px;
    }

    .chart-container {
        height: 220px;
    }
}

/* ===========================
   Responsive: Mobile
=========================== */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .glass-card {
        padding: 20px;
        border-radius: 16px;
    }

    .credit-amount {
        font-size: 32px;
        margin: 15px 0 8px;
    }

    .credit-label {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .credit-details {
        flex-direction: column;
        gap: 15px;
    }

    .credit-stat-value {
        font-size: 18px;
        margin-bottom: 3px;
    }

    .credit-stat-label {
        font-size: 12px;
    }

    .chart-container {
        height: 200px;
    }
}

/* ===========================
   Responsive: Small Mobile
=========================== */
@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 15px;
    }

    .glass-card {
        padding: 15px;
        border-radius: 12px;
    }

    .credit-amount {
        font-size: 28px;
        margin: 12px 0 6px;
    }

    .credit-label {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .credit-details {
        gap: 12px;
    }

    .credit-stat-value {
        font-size: 16px;
    }

    .credit-stat-label {
        font-size: 11px;
    }

    .chart-container {
        height: 180px;
    }
}

