
body{
    font-family: Arial, Helvetica, sans-serif;
    background:#eef4f9;
    margin:0;
}

header{
    background:#003366;
    color:white;
    text-align:center;
    padding:30px;
}

header h1{
    margin:0;
    font-size:36px;
}

header p{
    margin-top:10px;
    font-size:25px;
}

.container{
    width:90%;
    margin:auto;
    margin-top:30px;
}

.card{
    background:white;
    border-radius:15px;
    padding:20px;
    margin-bottom:20px;
    box-shadow:0px 4px 10px rgba(0,0,0,0.15);
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.card h2{
    margin:0;
    color:#003366;
}

button{
    background:#0078D7;
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
}

button:hover{
    background:#005fa3;
}

footer{
    text-align:center;
    margin:30px;
    color:gray;
}

/* =========================================
   CBM DASHBOARD V1
   ========================================= */

.dashboard-section {
    margin: 30px 0;
}

.dashboard-section h2 {
    margin-bottom: 20px;
}


/* KPI */

.kpi-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.kpi-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 4px solid #1f4e79;
}

.kpi-card span {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.kpi-card strong {
    display: block;
    font-size: 32px;
    color: #1f4e79;
}


/* DASHBOARD GRID */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.dashboard-card h3 {
    margin-top: 0;
    color: #1f4e79;
}


/* PROGRESS */

.progress {
    width: 100%;
    height: 28px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #1f4e79;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: bold;
}


/* FINDING */

.finding-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 5px;
    border-bottom: 1px solid #eeeeee;
}

.finding-row:last-child {
    border-bottom: none;
}

.finding-row strong {
    background: #1f4e79;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
}


/* ALERT TABLE */

.alert-table {
    padding: 0;
    overflow: hidden;
}

.alert-header,
.alert-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 15px;
    padding: 15px 20px;
    align-items: center;
}

.alert-header {
    background: #1f4e79;
    color: white;
    font-weight: bold;
}

.alert-row {
    border-bottom: 1px solid #eeeeee;
}

.alert-row:last-child {
    border-bottom: none;
}


/* STATUS */

.status-warning {
    background: #f39c12;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

.status-critical {
    background: #c0392b;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

.status-attention {
    background: #f1c40f;
    color: #222;
    padding: 5px 10px;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .kpi-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .kpi-container {
        grid-template-columns: 1fr;
    }

    .alert-header,
    .alert-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

}
