* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #020914;
    color: #ffffff;
    font-family: Arial, sans-serif;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 230px;
    background: #06111f;
    border-right: 1px solid #12304a;
    padding: 30px 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 50px;
}

.logo span {
    color: #19a7ff;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

nav a {
    color: #9fb3c8;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 8px;
}

nav a:hover,
nav a.active {
    background: #0b1d30;
    color: #19a7ff;
}

main {
    flex: 1;
    padding: 40px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

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

header p {
    color: #7f96ad;
}

.online {
    color: #24d65a;
    font-weight: bold;
}

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

.card {
    background: #06111f;
    border: 1px solid #12304a;
    border-radius: 14px;
    padding: 24px;
}

.card h2 {
    margin-top: 0;
    font-size: 18px;
    color: #8fb1cc;
}

.card p {
    margin-bottom: 0;
}

.big {
    font-size: 34px;
    font-weight: bold;
    color: #19a7ff;
}

.status {
    font-weight: bold;
}

.green {
    color: #24d65a;
}

.orange {
    color: #ff9f1c;
}

@media (max-width: 800px) {

    body {
        display: block;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #12304a;
    }

    nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    main {
        padding: 20px;
    }

    header {
        align-items: flex-start;
        gap: 20px;
        flex-direction: column;
    }
}


/* ==========================================================
   NOVAPANEL HOME INFRA V2
   ========================================================== */

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

.infra-card {
    min-height: 270px;
}

.infra-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.infra-header h2 {
    margin-bottom: 12px;
}

.infra-header .status {
    margin: 0;
}

.infra-type {
    color: #7f96ad;
    font-size: 14px;
    text-align: right;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stat-block {
    background: #020914;
    border: 1px solid #12304a;
    border-radius: 10px;
    padding: 16px;
    min-width: 0;
}

.stat-label {
    display: block;
    color: #8fb1cc;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    color: #19a7ff;
    font-size: 28px;
    font-weight: bold;
    white-space: nowrap;
}

.stat-detail {
    display: block;
    color: #7f96ad;
    font-size: 13px;
    margin-top: 8px;
}

.muted {
    color: #53687c;
}

.services-card {
    grid-column: 1 / -1;
}

.service-lines {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}


/* tablette */
@media (max-width: 1200px) {

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

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* mobile */
@media (max-width: 600px) {

    .infra-header {
        flex-direction: column;
    }

    .infra-type {
        text-align: left;
    }

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

    .stat-value {
        font-size: 24px;
    }
}



/* ==========================================================
   NOVAPANEL WOL JOSHUA V1
   ========================================================== */

.wol-zone {
    margin-bottom: 22px;
}

.wol-button {
    background: #0b1d30;
    border: 1px solid #19a7ff;
    color: #19a7ff;
    border-radius: 9px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.wol-button:hover {
    background: #102941;
}

.wol-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.wol-locked {
    color: #7f96ad;
    font-size: 13px;
}

.wol-locked a {
    color: #19a7ff;
    text-decoration: none;
}

.wol-locked a:hover {
    text-decoration: underline;
}

