/* ===========================
   Global
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Segoe UI,Arial,sans-serif;
}

body{

    background:#f4f7fb;
    color:#222;

}

.container{

    width:95%;
    max-width:1500px;
    margin:30px auto;

}

h1{

    text-align:center;
    margin-bottom:25px;
    color:#1e3a8a;

}

/* ===========================
   Overall Health Card
=========================== */

.healthCard{

    background:#fff;
    border-radius:18px;
    padding:30px;
    margin-bottom:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.healthCard h2{

    margin-bottom:15px;

}

.healthScore{

    font-size:50px;
    font-weight:bold;
    color:#2563eb;

}

.healthBar{

    width:100%;
    height:12px;
    background:#e5e7eb;
    border-radius:20px;
    overflow:hidden;
    margin:20px 0;

}

#overallBar{

    width:0%;
    height:100%;
    background:#22c55e;
    transition:.5s;

}

.healthStatus{

    font-size:18px;
    font-weight:bold;
    margin-bottom:25px;

}

.healthStats{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;

}

.healthStats div{

    background:#f8fafc;
    border-radius:12px;
    padding:20px;
    text-align:center;

}

.healthStats h3{

    font-size:30px;
    color:#2563eb;

}

/* ===========================
 Cards
=========================== */

.cards{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:25px;

}

.card{

    background:#fff;
    border-radius:15px;
    padding:25px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.card h3{

    color:#666;
    margin-bottom:10px;

}

.card span{

    font-size:34px;
    font-weight:bold;
    color:#2563eb;

}

/* ===========================
 Toolbar
=========================== */

.toolbar{

    display:flex;
    gap:15px;
    margin-bottom:20px;

}

#searchBox{

    flex:1;
    padding:12px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:15px;

}

#refreshBtn{

    background:#2563eb;
    color:#fff;
    border:none;
    padding:12px 20px;
    border-radius:8px;
    cursor:pointer;

}

#refreshBtn:hover{

    background:#1d4ed8;

}

/* ===========================
 Filters
=========================== */

.filters{

    display:flex;
    gap:10px;
    margin-bottom:20px;

}

.filterBtn{

    padding:10px 18px;
    border:none;
    border-radius:30px;
    cursor:pointer;
    background:#e5e7eb;
    transition:.3s;

}

.filterBtn.active{

    background:#2563eb;
    color:#fff;

}

/* ===========================
 Status Row
=========================== */

.statusRow{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;

}

.systemStatus{

    background:#dcfce7;
    color:#166534;
    padding:10px 18px;
    border-radius:25px;
    font-weight:bold;

}

.lastUpdated{

    color:#666;

}

/* ===========================
 Table
=========================== */

table{

    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

th{

    background:#2563eb;
    color:#fff;
    padding:16px;

}

td{

    padding:14px;
    border-bottom:1px solid #eee;

}

tr:hover{

    background:#f8fafc;

}

/* ===========================
 Progress
=========================== */

.progress{

    width:120px;
    height:22px;
    background:#eee;
    border-radius:20px;
    overflow:hidden;

}

.progress-fill{

    height:100%;
    color:#fff;
    text-align:center;
    font-size:12px;
    line-height:22px;
    background:#2563eb;

}

/* ===========================
 Badges
=========================== */

.badge{

    padding:6px 12px;
    border-radius:20px;
    color:#fff;
    font-size:12px;
    font-weight:bold;

}

.pass{

    background:#16a34a;

}

.warn{

    background:#f59e0b;

}

.fail{

    background:#ef4444;

}

/* ===========================
 Details Button
=========================== */

.detailsBtn{

    background:#2563eb;
    color:#fff;
    border:none;
    padding:8px 14px;
    border-radius:6px;
    cursor:pointer;

}

.detailsBtn:hover{

    background:#1d4ed8;

}

/* ===========================
 Modal
=========================== */

.modal{

    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:999;

}

.modal-content{

    background:#fff;
    width:700px;
    max-width:90%;
    margin:60px auto;
    padding:25px;
    border-radius:15px;

}

.closeModal{

    float:right;
    font-size:28px;
    cursor:pointer;

}

.detailRow{

    display:flex;
    justify-content:space-between;
    padding:12px 0;
    border-bottom:1px solid #eee;

}

.detailLabel{

    font-weight:bold;
    color:#444;

}

.detailValue{

    text-align:right;

}