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

body{

    background:#eef2f7;

}

.layout{

    display:flex;

    min-height:100vh;

}

.sidebar{

    width:240px;

    background:#243447;

    color:white;

    display:flex;

    flex-direction:column;

}

.logo{

    padding:30px;

    border-bottom:1px solid rgba(255,255,255,.15);

}

.logo h2{

    margin-bottom:5px;

}

.logo span{

    color:#cdd6df;

    font-size:13px;

}

.sidebar nav{

    display:flex;

    flex-direction:column;

    margin-top:20px;

}

.sidebar nav a{

    color:white;

    text-decoration:none;

    padding:15px 30px;

    transition:.2s;

}

.sidebar nav a:hover{

    background:#31465e;

}

.content{

    flex:1;

    display:flex;

    flex-direction:column;

}

.topbar{

    background:white;

    padding:25px 40px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:0 2px 8px rgba(0,0,0,.08);

}

main{

    padding:40px;

}

.page-title{

    font-size:34px;

    margin-bottom:5px;

}

.page-subtitle{

    color:#666;

    margin-bottom:35px;

}

.dashboard-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:25px;

    margin-bottom:35px;

}

.metric-card{

    background:white;

    border-radius:12px;

    padding:30px;

    box-shadow:0 3px 12px rgba(0,0,0,.08);

    display:flex;

    flex-direction:column;

}

.metric-title{

    color:#777;

    font-size:15px;

}

.metric-value{

    font-size:42px;

    color:#243447;

    margin-top:15px;

    font-weight:bold;

}

.panel{

    background:white;

    padding:35px;

    border-radius:12px;

    box-shadow:0 3px 12px rgba(0,0,0,.08);

}

.panel h2{

    margin-bottom:15px;

}

/* ===========================
   TABELAS
=========================== */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.data-table thead {
    background: #233247;
    color: #fff;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
}

.data-table tbody tr:nth-child(even) {
    background: #f7f9fb;
}

.data-table tbody tr:hover {
    background: #eaf2fb;
}

.status-online {
    color: #28a745;
    font-weight: bold;
}

.status-offline {
    color: #dc3545;
    font-weight: bold;
}

.col-vmid {
    width: 70px;
}

.col-node {
    width: 150px;
}

.col-status {
    width: 120px;
}

.col-pool {
    width: 120px;
}

/* ===========================
   NODE CARDS
=========================== */

.nodes-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
    gap:20px;
    margin-top:20px;
}

.node-card{

    background:#ffffff;

    border-radius:10px;

    padding:20px;

    box-shadow:0 3px 10px rgba(0,0,0,.08);

}

.node-title{

    font-size:18px;

    font-weight:bold;

    margin-bottom:20px;

}

.metric{

    margin-bottom:18px;

}

.metric label{

    display:block;

    margin-bottom:6px;

    font-weight:bold;

    color:#444;

}

.progress{

    width:100%;

    height:10px;

    background:#dcdcdc;

    border-radius:6px;

    overflow:hidden;

}

.progress-bar{

    height:100%;

    background:#1b8ef2;

}

.metric-value{

    text-align:right;

    margin-top:5px;

    font-size:13px;

}

.table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
}

.table th{
    background:#243447;
    color:white;
    padding:12px;
    text-align:left;
}

.table td{
    padding:10px 12px;
    border-bottom:1px solid #e5e5e5;
}

.table tr:nth-child(even){
    background:#f8f9fb;
}

.table tr:hover{
    background:#eef5ff;
}

.progress.mini{

    height:8px;

    margin-top:6px;

}

/* ---------- STATUS ---------- */

.status-badge{

    display:inline-block;

    padding:4px 12px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;

}

.status-online{

    background:#dff5e2;

    color:#238636;

}

.status-offline{

    background:#fde2e2;

    color:#d1242f;

}


/* ---------- LINKS ---------- */

.vm-link{

    text-decoration:none;

    color:#2c3e50;

    font-weight:600;

}

.vm-link:hover{

    color:#1f6feb;

}


/* ---------- Dashboard ---------- */

.infra-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

    margin-top:20px;

}

.infra-card{

    background:#fff;

    border-radius:10px;

    padding:20px;

    text-align:center;

    box-shadow:0 2px 8px rgba(0,0,0,.08);

}

.infra-card h3{

    margin-bottom:20px;

    color:#2c3e50;

    font-size:18px;

}

.infra-card canvas{

    max-width:170px;

    margin:15px auto;

    display:block;

}
