/* ==========================================================
   SIMONSUHU - PUBLIC MONITORING
========================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fb;
    font-family: Arial, sans-serif;
    color: #212529;
}



/* ==========================================================
   HEADER
========================================================== */

.monitoring-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 30px;

    position: sticky;
    top: 0;

    z-index: 1000;

    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
}

.logo-subtitle {
    color: #6c757d;
    font-size: 13px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    font-weight: 600;

    color: #198754;
}

.live-dot {
    width: 9px;
    height: 9px;

    background: #198754;

    border-radius: 50%;

    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }

    100% {
        opacity: 1;
    }

}


/* ==========================================================
   CONTENT
========================================================== */

.monitoring-container {
    max-width: 1500px;

    margin: auto;

    padding: 25px 30px;
}

.page-heading {
    text-align: center;

    margin-bottom: 25px;
}

.page-heading h2 {
    font-size: 30px;

    font-weight: 700;

    margin-bottom: 5px;
}

.page-heading p {
    color: #6c757d;

    margin: 0;
}


/* ==========================================================
   MONITORING GRID
========================================================== */

.monitoring-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

}


/* ==========================================================
   CARD
========================================================== */

.monitoring-card {

    background: #ffffff;

    border-radius: 14px;

    border: 1px solid #e9ecef;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .05);

    overflow: hidden;

    transition: .2s;

}

.monitoring-card:hover {

    transform: translateY(-2px);

    box-shadow: 0 7px 20px rgba(0, 0, 0, .08);

}


/* ==========================================================
   CARD HEADER
========================================================== */

.card-header-monitoring {

    padding: 13px 15px;

    border-bottom: 1px solid #eeeeee;

}

.location {

    font-size: 11px;

    color: #6c757d;

    margin-bottom: 3px;

}

.unit-name {

    font-size: 17px;

    font-weight: 700;

}

.point-name {

    font-size: 11px;

    color: #6c757d;

    margin-top: 3px;

}


/* ==========================================================
   DEVICE
========================================================== */

.device-name {

    font-size: 10px;

    color: #6c757d;

    margin-top: 3px;

}

.device-name span {

    font-weight: 600;

    color: #495057;

}


/* ==========================================================
   WIFI SSID
========================================================== */

.point-name {

    display: flex;

    align-items: center;

    gap: 5px;

}

.point-name i {

    color: #0d6efd;

}


/* ==========================================================
   BODY
========================================================== */

.monitoring-body {

    padding: 14px;

}

.value-box {

    text-align: center;

    padding: 12px 5px;

    background: #f8f9fa;

    border-radius: 10px;

}

.value-icon {

    font-size: 21px;

    margin-bottom: 3px;

}

.temperature-icon {

    color: #dc3545;

}

.humidity-icon {

    color: #0d6efd;

}

.value-label {

    font-size: 9px;

    color: #6c757d;

    font-weight: 600;

}

.value {

    font-size: 23px;

    font-weight: 700;

    margin-top: 2px;

}

.value small {

    font-size: 12px;

    font-weight: 500;

}


/* ==========================================================
   WIFI SIGNAL
========================================================== */

.wifi-signal {

    margin-top: 9px;

    padding: 7px 8px;

    background: #f8f9fa;

    border-radius: 7px;

    text-align: center;

    font-size: 10px;

    color: #6c757d;

}

.wifi-signal i {

    color: #0d6efd;

    margin-right: 3px;

}

.wifi-signal strong {

    color: #495057;

}


/* ==========================================================
   STATUS
========================================================== */

.status {

    margin-top: 12px;

    text-align: center;

    padding: 7px;

    border-radius: 7px;

    font-size: 11px;

    font-weight: 600;

}

.status-normal {

    background: #d1e7dd;

    color: #0f5132;

}

.status-warning {

    background: #fff3cd;

    color: #664d03;

}

.status-danger {

    background: #f8d7da;

    color: #842029;

}

.status-offline {

    background: #e9ecef;

    color: #6c757d;

}


/* ==========================================================
   API STATUS
========================================================== */

.api-status {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

}

.api-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    display: inline-block;

    background: #999;

}

.api-dot.online {

    background: #198754;

    box-shadow:
        0 0 6px rgba(25, 135, 84, .7);

}

.api-dot.offline {

    background: #dc3545;

    box-shadow:
        0 0 6px rgba(220, 53, 69, .7);

}


/* ==========================================================
   BATAS
========================================================== */

.limit-info {

    display: flex;

    justify-content: space-between;

    margin-top: 9px;

    font-size: 10px;

    color: #6c757d;

}


/* ==========================================================
   UPDATE
========================================================== */

.last-update {

    margin-top: 10px;

    text-align: center;

    font-size: 9px;

    color: #6c757d;

}


/* ==========================================================
   EMPTY
========================================================== */

.empty-data {

    background: #ffffff;

    border-radius: 15px;

    padding: 50px 30px;

    text-align: center;

    color: #6c757d;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .04);

}

.empty-data i {

    font-size: 50px;

    margin-bottom: 15px;

}


/* ==========================================================
   FOOTER
========================================================== */

.footer-info {

    text-align: center;

    color: #6c757d;

    font-size: 10px;

    margin-top: 25px;

    padding-bottom: 20px;

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1200px) {

    .monitoring-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

}


/* ==========================================================
   TABLET KECIL
========================================================== */

@media (max-width: 900px) {

    .monitoring-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

    .monitoring-header {

        padding: 12px 15px;

    }

    .monitoring-container {

        padding: 20px 15px;

    }

    .logo-title {

        font-size: 20px;

    }

    .logo-subtitle {

        font-size: 11px;

    }

    .page-heading h2 {

        font-size: 24px;

    }

    .monitoring-grid {

        grid-template-columns: 1fr;

        gap: 15px;

    }

    .card-header-monitoring {

        padding: 12px;

    }

    .monitoring-body {

        padding: 12px;

    }

}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fb;
    font-family: Arial, sans-serif;
    color: #212529;
}


/* ==========================================================
   HEADER
========================================================== */

.monitoring-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 30px;

    position: sticky;
    top: 0;

    z-index: 1000;

    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
}

.logo-subtitle {
    color: #6c757d;
    font-size: 13px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    font-weight: 600;

    color: #198754;
}

.live-dot {
    width: 9px;
    height: 9px;

    background: #198754;

    border-radius: 50%;

    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }

    100% {
        opacity: 1;
    }

}


/* ==========================================================
   CONTENT
========================================================== */

.monitoring-container {
    max-width: 1500px;

    margin: auto;

    padding: 25px 30px;
}

.page-heading {
    text-align: center;

    margin-bottom: 25px;
}

.page-heading h2 {
    font-size: 30px;

    font-weight: 700;

    margin-bottom: 5px;
}

.page-heading p {
    color: #6c757d;

    margin: 0;
}


/* ==========================================================
   MONITORING GRID
========================================================== */

.monitoring-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

}


/* ==========================================================
   CARD
========================================================== */

.monitoring-card {

    background: #ffffff;

    border-radius: 14px;

    border: 1px solid #e9ecef;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .05);

    overflow: hidden;

    transition: .2s;

}

.monitoring-card:hover {

    transform: translateY(-2px);

    box-shadow: 0 7px 20px rgba(0, 0, 0, .08);

}


/* ==========================================================
   CARD HEADER
========================================================== */

.card-header-monitoring {

    padding: 13px 15px;

    border-bottom: 1px solid #eeeeee;

}

.location {

    font-size: 11px;

    color: #6c757d;

    margin-bottom: 3px;

}

.unit-name {

    font-size: 17px;

    font-weight: 700;

}

.point-name {

    font-size: 11px;

    color: #6c757d;

    margin-top: 3px;

}


/* ==========================================================
   BODY
========================================================== */

.monitoring-body {

    padding: 14px;

}

.value-box {

    text-align: center;

    padding: 12px 5px;

    background: #f8f9fa;

    border-radius: 10px;

}

.value-icon {

    font-size: 21px;

    margin-bottom: 3px;

}

.temperature-icon {

    color: #dc3545;

}

.humidity-icon {

    color: #0d6efd;

}

.value-label {

    font-size: 9px;

    color: #6c757d;

    font-weight: 600;

}

.value {

    font-size: 23px;

    font-weight: 700;

    margin-top: 2px;

}

.value small {

    font-size: 12px;

    font-weight: 500;

}


/* ==========================================================
   STATUS
========================================================== */

.status {

    margin-top: 12px;

    text-align: center;

    padding: 7px;

    border-radius: 7px;

    font-size: 11px;

    font-weight: 600;

}

.status-normal {

    background: #d1e7dd;

    color: #0f5132;

}

.status-warning {

    background: #fff3cd;

    color: #664d03;

}

.status-danger {

    background: #f8d7da;

    color: #842029;

}


/* ==========================================================
   BATAS
========================================================== */

.limit-info {

    display: flex;

    justify-content: space-between;

    margin-top: 9px;

    font-size: 10px;

    color: #6c757d;

}


/* ==========================================================
   UPDATE
========================================================== */

.last-update {

    margin-top: 10px;

    text-align: center;

    font-size: 9px;

    color: #6c757d;

}


/* ==========================================================
   EMPTY
========================================================== */

.empty-data {

    background: #ffffff;

    border-radius: 15px;

    padding: 50px 30px;

    text-align: center;

    color: #6c757d;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .04);

}

.empty-data i {

    font-size: 50px;

    margin-bottom: 15px;

}


/* ==========================================================
   FOOTER
========================================================== */

.footer-info {

    text-align: center;

    color: #6c757d;

    font-size: 10px;

    margin-top: 25px;

    padding-bottom: 20px;

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1200px) {

    .monitoring-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

}


/* ==========================================================
   TABLET KECIL
========================================================== */

@media (max-width: 900px) {

    .monitoring-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

    .monitoring-header {

        padding: 12px 15px;

    }

    .monitoring-container {

        padding: 20px 15px;

    }

    .logo-title {

        font-size: 20px;

    }

    .logo-subtitle {

        font-size: 11px;

    }

    .page-heading h2 {

        font-size: 24px;

    }

    .monitoring-grid {

        grid-template-columns: 1fr;

        gap: 15px;

    }

}