* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0f172a;
    color: #f8fafc;
    font-family: Arial, Helvetica, sans-serif;
}

.page {
    width: 95%;
    max-width: 1500px;
    margin: auto;
    padding: 35px;
}


/* ===========================
   CABEÇALHO
=========================== */

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    color: #38bdf8;
    font-size: 42px;
    margin-bottom: 8px;
}

.header p {
    color: #94a3b8;
    font-size: 18px;
}


/* ===========================
   STATUS GERAL
=========================== */

.system-status {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 45px;
}

.status-card {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.status-card h2 {
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 18px;
}

.status-card p {
    font-size: 28px;
    font-weight: bold;
}

.status-card.system-success {
    border-color: #22c55e;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, .35),
        0 0 16px rgba(34, 197, 94, .20);
}

.status-card.system-failure {
    border-color: #ef4444;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, .35),
        0 0 20px rgba(239, 68, 68, .38);
}

.status-card.system-unknown {
    border-color: #facc15;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, .35),
        0 0 16px rgba(250, 204, 21, .22);
}


/* ===========================
   TÍTULO
=========================== */

.section-title {
    color: #38bdf8;
    margin-bottom: 25px;
}


/* ===========================
   EQUIPAMENTOS
=========================== */

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

.device-card {
    background: #1e293b;
    border: 3px solid #334155;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.device-card.success {
    border-color: #22c55e;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, .35),
        0 0 15px rgba(34, 197, 94, .18);
}

.device-card.failure {
    border-color: #ef4444;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, .35),
        0 0 22px rgba(239, 68, 68, .42);
}

.device-card.unknown {
    border-color: #facc15;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, .35),
        0 0 15px rgba(250, 204, 21, .22);
}

.device-title h3 {
    font-size: 30px;
}

.info {
    margin-top: 16px;
    color: #cbd5e1;
}

.info strong {
    color: #f8fafc;
}

.txrx {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #0f172a;
    border-radius: 12px;
    text-align: center;
}

.txrx-title {
    color: #94a3b8;
    font-size: 15px;
}

.txrx-value {
    color: #38bdf8;
    font-size: 42px;
    font-weight: bold;
    margin-top: 8px;
}


/* ===========================
   RESPONSIVIDADE
=========================== */

@media (max-width: 600px) {

    .page {
        width: 100%;
        padding: 20px;
    }

    .header h1 {
        font-size: 32px;
    }

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

    .device-title h3 {
        font-size: 25px;
    }

    .txrx-value {
        font-size: 36px;
    }
}
