/* ================= IMPORT FONT ================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

/* ================= BODY ================= */

body{

    font-family: 'Poppins', sans-serif;

    background:
        linear-gradient(
            rgba(0,0,0,0.65),
            rgba(0,0,0,0.65)
        ),
        url('/images/kereta.jpg');

    background-size: cover;

    background-position: center;

    background-attachment: fixed;

    color: white;

    overflow-x: hidden;
}

/* ================= PAGE CONTAINER ================= */

.page-container{

    min-height: 100vh;

    width: 100%;

    padding: 40px 50px;

    display: flex;

    flex-direction: column;

    align-items: center;
}

/* ================= MAIN TITLE ================= */

.main-title{

    font-size: 52px;

    font-weight: 700;

    margin-bottom: 40px;

    text-align: center;

    color: white;

    text-shadow:
        0 5px 20px rgba(0,0,0,0.5);
}

/* ================= BUTTON BACK ================= */

.btn-back{

    position: fixed;

    top: 25px;

    left: 25px;

    z-index: 999;

    padding: 12px 22px;

    border-radius: 15px;

    text-decoration: none;

    color: white;

    font-size: 16px;

    font-weight: 500;

    background: rgba(255,255,255,0.1);

    backdrop-filter: blur(10px);

    box-shadow: 0 8px 20px rgba(0,0,0,0.4);

    transition: 0.3s;
}

.btn-back:hover{

    transform: translateY(-3px);

    background: rgba(255,255,255,0.18);
}

/* ================= WRAPPER ================= */

.monitoring-wrapper{

    width: 100%;

    max-width: 1600px;

    display: flex;

    flex-direction: column;

    gap: 45px;
}

/* ================= MONITORING SECTION ================= */

.monitoring-section{

    width: 100%;

    padding: 35px;

    border-radius: 35px;

    background: rgba(255,255,255,0.08);

    backdrop-filter: blur(15px);

    box-shadow:
        0 10px 35px rgba(0,0,0,0.45);

    border:
        1px solid rgba(255,255,255,0.08);
}

/* ================= SECTION TITLE ================= */

.section-title{

    font-size: 34px;

    font-weight: 700;

    margin-bottom: 30px;

    letter-spacing: 1px;

    color: white;
}

/* ================= SENSOR GRID ================= */

.getaran-grid{

    display: grid;

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

    gap: 25px;
}

/* ================= SENSOR CARD ================= */

.sensor-card{

    background: rgba(255,255,255,0.1);

    border-radius: 28px;

    padding: 35px 20px;

    text-align: center;

    backdrop-filter: blur(10px);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.35);

    transition: all 0.3s ease;
}

.sensor-card:hover{

    transform: translateY(-8px);

    background: rgba(255,255,255,0.16);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.45);
}

/* ================= LABEL ================= */

.sensor-card h5{

    font-size: 18px;

    font-weight: 400;

    opacity: 0.85;

    margin-bottom: 15px;

    letter-spacing: 1px;
}

/* ================= VALUE ================= */

.sensor-card h3{

    font-size: 42px;

    font-weight: 700;

    color: white;
}

/* ================= RESULT CARD ================= */

.result-card{

    border:
        2px solid #00bfff;

    box-shadow:
        0 0 25px rgba(0,191,255,0.4);
}

/* ================= INFO GRID ================= */

.info-grid{

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

    margin-top: 30px;
}

/* ================= INFO CARD ================= */

.info-card{

    background: rgba(255,255,255,0.08);

    border-radius: 28px;

    padding: 35px;

    text-align: center;

    backdrop-filter: blur(12px);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.35);

    transition: 0.3s;
}

.info-card:hover{

    transform: translateY(-5px);

    background: rgba(255,255,255,0.12);
}

/* ================= INFO TITLE ================= */

.info-card h4{

    font-size: 28px;

    font-weight: 600;

    margin-bottom: 22px;
}

/* ================= SIGNAL TEXT ================= */

.signal-text{

    font-size: 22px;

    margin: 14px 0;

    font-weight: 500;

    color: rgba(255,255,255,0.95);
}

/* ================= STATUS NORMAL ================= */

.status-normal{

    display: inline-block;

    padding: 15px 28px;

    border-radius: 18px;

    font-size: 22px;

    font-weight: 700;

    background:
        linear-gradient(
            90deg,
            #00ff88,
            #00cc6a
        );

    color: black;

    box-shadow:
        0 5px 20px rgba(0,255,136,0.35);
}

/* ================= STATUS DANGER ================= */

.status-danger{

    display: inline-block;

    padding: 15px 28px;

    border-radius: 18px;

    font-size: 22px;

    font-weight: 700;

    background:
        linear-gradient(
            90deg,
            #ff4d4d,
            #ff0000
        );

    color: white;

    box-shadow:
        0 5px 20px rgba(255,0,0,0.35);
}

/* ================= TABLE CONTAINER ================= */

.table-container{

    width: 100%;

    margin-top: 25px;

    padding: 30px;

    border-radius: 30px;

    background: rgba(255,255,255,0.08);

    backdrop-filter: blur(15px);

    overflow-x: auto;

    box-shadow:
        0 10px 35px rgba(0,0,0,0.45);
}

/* ================= TABLE TITLE ================= */

.table-title{

    font-size: 34px;

    font-weight: 700;

    margin-bottom: 10px;
}

.table-subtitle{

    opacity: 0.8;

    margin-bottom: 30px;
}

/* ================= TABLE ================= */

.monitoring-table{

    width: 100%;

    border-collapse: collapse;

    overflow: hidden;

    border-radius: 20px;
}

/* ================= TABLE HEADER ================= */

.monitoring-table thead{

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #1d4ed8
        );

    color: white;
}

.monitoring-table th{

    padding: 18px;

    text-align: center;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 1px;
}

/* ================= TABLE BODY ================= */

.monitoring-table tbody tr{

    background: rgba(255,255,255,0.08);

    transition: 0.3s;
}

.monitoring-table tbody tr:nth-child(even){

    background: rgba(255,255,255,0.12);
}

.monitoring-table tbody tr:hover{

    background: rgba(255,255,255,0.18);

    transform: scale(1.01);
}

/* ================= TABLE TD ================= */

.monitoring-table td{

    padding: 16px;

    text-align: center;

    font-size: 14px;

    color: white;

    border-bottom:
        1px solid rgba(255,255,255,0.08);
}

/* ================= DASHBOARD MENU ================= */

.dashboard-container{

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;
}

/* ================= DASHBOARD TITLE ================= */

.title{

    font-size: 48px;

    font-weight: 700;

    margin-bottom: 10px;

    text-shadow:
        0 5px 20px rgba(0,0,0,0.5);
}

/* ================= CLOCK ================= */

.clock{

    font-size: 22px;

    margin-bottom: 50px;

    opacity: 0.9;
}

/* ================= MENU CENTER ================= */

.menu-center{

    display: flex;

    gap: 35px;

    flex-wrap: wrap;

    justify-content: center;
}

/* ================= MENU CARD ================= */

.menu-card{

    width: 200px;

    height: 170px;

    border-radius: 30px;

    text-decoration: none;

    color: white;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    font-size: 42px;

    background: rgba(255,255,255,0.08);

    backdrop-filter: blur(15px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.45);

    transition: 0.3s;
}

.menu-card:hover{

    transform: translateY(-10px);

    background: rgba(255,255,255,0.15);
}

.menu-card h5{

    font-size: 18px;

    margin-top: 14px;

    font-weight: 500;
}

/* ================= CAMERA ================= */

.camera-box{

    width: 700px;

    height: 400px;

    border-radius: 30px;

    background: rgba(0,0,0,0.75);

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 22px;

    backdrop-filter: blur(10px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.45);
}

/* ================= RESPONSIVE ================= */

@media(max-width:1024px){

    .info-grid{

        grid-template-columns: 1fr;
    }

    .main-title{

        font-size: 40px;
    }

    .sensor-card h3{

        font-size: 34px;
    }
}

@media(max-width:768px){

    .page-container{

        padding: 30px 20px;
    }

    .main-title{

        font-size: 32px;
    }

    .section-title{

        font-size: 28px;
    }

    .sensor-card{

        padding: 25px 15px;
    }

    .sensor-card h3{

        font-size: 28px;
    }

    .signal-text{

        font-size: 18px;
    }

    .camera-box{

        width: 100%;

        height: 250px;
    }

    .menu-card{

        width: 100%;
    }
}
/* =========================
   MONITORING KAMERA
========================= */

.kamera-page {
    width: 100%;
    height: 100vh;
    background-image: url('/img/kereta.jpg');
    background-size: cover;
    background-position: center;
}

.kamera-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.judul-kamera {
    color: white;
    margin-bottom: 20px;
    font-size: 36px;
    font-weight: 600;
}

.kamera-card {
    width: 700px;
    height: 600px;
    background: rgba(0,0,0,0.45);
    border-radius: 20px;
    border: 5px solid rgba(255,255,255,0.2);

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.kamera-offline {
    color: white;
    font-size: 14px;
}

.kamera-stream {
    width: 100%;
    height: 100%;
    object-fit: cover;
}