/* ================= RESET ================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle at top,#0a0f1f,#000);
    color: white;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.9);
    flex-wrap: wrap;
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    color: #00C1FF;
    font-size: 20px;
    font-weight: bold;
}

/* ================= BACKGROUND ================= */
.stars {
  position:fixed;
  width:100%;
  height:100%;
  background:url('../../www.transparenttextures.com/patterns/stardust.png');
  z-index:-1;
  animation:moveStars 60s linear infinite;
}

@keyframes moveStars {
  0% { background-position:0 0; }
  100% { background-position:10000px 5000px; }
}

/* MENU */
.menu {
    display: flex;
}

.menu a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.menu a:hover {
    color: #00C1FF;
}

.menu a.active {
    color: #00C1FF;
    border-bottom: 2px solid #00C1FF;
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

    html, body {
        overflow-x: hidden;
    }

    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1a1a1a;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        margin: 10px;
    }

    .logo-text {
        font-size: 14px;
    }

    /* 🔥 FIX GRID MONITORING */
    .monitoring-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .monitor-card {
        padding: 10px;
        min-width: 0;
    }

    .monitor-value {
        font-size: 16px;
    }

    .monitor-icon {
        font-size: 20px;
    }

    .monitor-label {
        font-size: 11px;
    }

    /* 🔥 FIX CONTAINER BIAR GA MELEBAR */
    .monitoring-container {
        padding: 10px;
    }

    /* 🔥 FIX GRID LAIN */
    .grid {
        padding: 15px;
    }

    /* 🔥 FOOTER */
    .footer-container {
        grid-template-columns: 1fr !important;
    }

}
/*xxx*/

/* ================= MONITORING DASHBOARD ================= */

/* WRAPPER */
.monitoring-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

/* JUDUL */
.monitoring-title {
    text-align: center;
    margin-bottom: 30px;
}

.monitoring-title h1 {
    font-size: 32px;
    color: #ffffff;
}

/* CARD DATA */
.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* BOX SENSOR */
.monitor-card {
    background: rgba(20,30,60,0.6);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    min-width: 0;
}

.monitor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px #00C1FF50;
}

/* ICON */
.monitor-icon {
    font-size: 35px;
    margin-bottom: 10px;
    color: #00C1FF;
}

/* VALUE */
.monitor-value {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
}

/* LABEL */
.monitor-label {
    font-size: 14px;
    color: #aaa;
}


/* STATUS */
.status {
    margin-top: 10px;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 10px;
    display: inline-block;
}

.status.good {
    background: #00c85333;
    color: #00ff88;
}

.status.warning {
    background: #ff980033;
    color: #ff9800;
}

.status.danger {
    background: #ff525233;
    color: #ff5252;
}

/* ================= NASA STYLE PANEL ================= */

.monitor-panel {
    background: linear-gradient(145deg, #0a0f1f, #020617);
    border-radius: 20px;
    padding: 20px;
    margin: 30px auto;
    max-width: 1100px;

    box-shadow:
        0 0 20px rgba(0,193,255,0.2),
        inset 0 0 20px rgba(0,193,255,0.05);

    border: 1px solid rgba(0,193,255,0.2);
}

/* HEADER PANEL */
.panel-title {
    color: #00C1FF;
    font-size: 22px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* GLOW LINE */
.panel-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: #00C1FF;
    margin-top: 5px;
}

/* CHART WRAPPER */
.chart-box {
    background: #020617;
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(0,193,255,0.2);
    overflow: hidden;
}

/* FIX IFRAME */
.chart-box iframe {
    width: 100%;
    height: 300px;
    border: none;
    filter: invert(1) hue-rotate(180deg); /* 🔥 bikin dark mode */
    opacity: 0.9;
}

/* REFRESH BUTTON */
.refresh-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #00C1FF;
    color: #00C1FF;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.refresh-btn:hover {
    background: #00C1FF;
    color: black;
    box-shadow: 0 0 10px #00C1FF;
}


/* ================= FOOTER STYLE (UPGRADE CERN STYLE) ================= */

.footer {
    background: linear-gradient(to right, #000000, #000000);
    color: white;
    padding: 60px 30px 20px;
    
}

/* GRID FOOTER */
.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* BOX */
.footer-box h3 {
    border-bottom: 2px solid #00C1FF;
    display: inline-block;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

/* LIST */
.footer-box ul {
    list-style: none;
    padding: 0;
}

.footer-box li {
    margin: 10px 0;
}

/* LINK */
.footer-box a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-box a:hover {
    color: #00C1FF;
}

/* ICON SOSIAL */
.social-icons a {
    display: inline-block;
    background: #333;
    padding: 10px;
    border-radius: 50%;
    font-size: 24px;
    margin-right: 10px;
    color: white;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #E1306C; /* warna khas Instagram */
}

/* TEXT */
.footer-box p {
    color: #ccc;
    line-height: 1.6;
}

/* BAWAH */
.footer-bottom {
    text-align: left;
    margin-top: 40px;
    color: #aaa;
    font-size: 14px;
}

/* isi */

.overlay h1 {
    font-size: 50px;
}

.line {
    width: 120px;
    height: 2px;
    background: #00C1FF;
    margin: 20px auto;
}

.overlay p {
    font-size: 18px;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px; /* jarak logo & teks */
    margin-top: 40px;
    color: #aaa;
    font-size: 14px;
    justify-content: flex-end;
}

.footer-logo {
   max-width: 300px;  /* 🔥 batasi lebar */
    height: auto;
    margin-bottom: 10px;
    height: 40px;
    width: auto;
}
/* ================= VIDEO PANEL ================= */

.video-panel {
    background: linear-gradient(145deg, #0a0f1f, #020617);
    border-radius: 20px;
    padding: 20px;
    margin: 30px auto;
    max-width: 1100px;

    box-shadow:
        0 0 20px rgba(0,193,255,0.2),
        inset 0 0 20px rgba(0,193,255,0.05);

    border: 1px solid rgba(0,193,255,0.2);
}

/* WRAPPER VIDEO */

.video-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(0,193,255,0.2);
    background: #020617;
}

/* IFRAME VIDEO */

.video-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .video-panel {
        margin: 20px 10px;
        padding: 15px;
    }

    .video-box {
        border-radius: 10px;
    }

    .panel-title {
        font-size: 18px;
    }
}