body {
    background-color: #0f172a;
    font-family: "Segoe UI", sans-serif;
    color: white;
    margin: 0;
}

.dashboard {
    padding: 20px;
}

h2 {
    margin-bottom: 20px;
    color: white;
}

/* Stats box */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    text-align: start;
    aspect-ratio: 19 / 6;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.stat-box h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.stat-box .value {
    font-size: 42px;
    font-weight: bold;
    text-align: center;
}

.stat-box .trend {
    font-size: 20px;
    text-align: end;
}

/* Chart grid */
.charts,
.bottom-charts,
.grid-2,
.top-row,
.bottom-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.charts-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.chart-box,
.chart-container {
    background: #1e293b;
    padding: 15px;
    border-radius: 10px;
}

/* Responsive canvas */
canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-buttons select,
.filter-buttons button {
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    background-color: #1e293b;
    color: white;
}

.filter-buttons button {
    background-color: #0ea5e9;
    cursor: pointer;
}

/* header */
.flex {
    display: flex;
    gap: 10px;
}

.col {
    flex-direction: column;
}

.between {
    justify-content: space-between;
}

label {
    margin-right: 8px;
    font-weight: bold;
}

select {
    padding: 6px 12px;
    background-color: #1e293b;
    color: white;
    border: 1px solid #3b82f6;
    border-radius: 5px;
}

/* header */

/* Responsive tablet */
@media screen and (max-width: 800px) {

    .stats,
    .charts-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts,
    .bottom-charts,
    .grid-2,
    .top-row,
    .bottom-row {
        grid-template-columns: 1fr;
    }
}

/* Responsive mobile */
@media screen and (max-width: 500px) {

    .stats,
    .charts-3 {
        grid-template-columns: 1fr;
    }

    .charts,
    .bottom-charts,
    .grid-2,
    .top-row,
    .bottom-row {
        grid-template-columns: 1fr;
    }
}