/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f7f7f7;
}

/* HERO */
.dash-hero {
    background: url("./credit1.webp")
        center/cover no-repeat;
    height: 45vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dash-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.dash-hero .hero-content {
    color: #fff;
    position: relative;
    text-align: center;
}

.dash-hero h1 {
    font-size: 40px;
}

.dash-hero p {
    margin-top: 10px;
    font-size: 18px;
}

/* SUMMARY CARDS */
.summary-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 5%;
    flex-wrap: wrap;
}

.summary-cards .card {
    background: linear-gradient(145deg, #ffffff, #e8e8ff);
    padding: 25px;
    width: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-align: center;
}

.summary-cards .card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

/* CHART SECTION */
.charts {
    padding: 40px 6%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 25px;
}

.chart-box {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.chart-box h2 {
    text-align: center;
    margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .dash-hero h1 { font-size: 28px; }
    .dash-hero p { font-size: 14px; }
    .summary-cards { padding: 20px; }
    .charts { padding: 20px; }
}

@media (max-width: 480px) {
    .dash-hero { height: 35vh; }
    .dash-hero h1 { font-size: 22px; }
}
/* CHARTS SECTION */
.charts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 40px 7%;
}

.chart-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: 0.3s;
}

.chart-box h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

.chart-box:hover {
    transform: translateY(-5px);
}



/* -----------------------------------
   📱 TABLET VIEW (2 columns)
-------------------------------------- */
@media (max-width: 992px) {
    .charts {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 5%;
        gap: 20px;
    }

    .chart-box h2 {
        font-size: 18px;
    }
}



/* -----------------------------------
   📱 MOBILE VIEW (1 column)
-------------------------------------- */
@media (max-width: 600px) {
    .charts {
        grid-template-columns: repeat(1, 1fr);
        padding: 20px 4%;
        gap: 15px;
    }

    .chart-box {
        padding: 20px;
    }

    .chart-box h2 {
        font-size: 16px;
    }

    canvas {
        width: 100% !important;
        height: auto !important;
    }
}
