/* Container Slider */
.news-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    max-width: 100%;
}

/* Garis Pembatas */
.separator {
    width: 2px; 
    height: 20px; 
    background-color: #C6A73D; 
    margin: 0 10px;
}

/* Tombol Statistik (di Navbar) */
.statistik-button {
    background-color: #5cb85c;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease-in-out;
}


/* Container Panel Statistik */
.statistik-container {
    position: absolute;
    top: 0; /* Pastikan tetap di atas saat scroll */
    left: 0;
    display: flex;
    align-items: center;
    z-index: 1000;
}


/* Panel Statistik */
.statistik-panel {
    position: absolute;
    top: 150px; /* Ini yang mengatur posisi tetap di bawah navbar */
    left: 0;
    width: 300px;
    height: 500px;
    background-color: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
    padding: 20px;
    z-index: 999;
}


/* Judul Panel */
.statistik-panel h2 {
    font-size: 18px;
    color: black;
    font-weight: bold;
    line-height: 10px;
}

.statistik-panel h2 span {
    color: #C6A73D;
}

.statistik-panel p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Kotak Statistik */
.stat-box {
    background-color: #444;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

.stat-box i {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-box .title {
    font-size: 16px;
    font-weight: bold;
}

.stat-box .number {
    font-size: 28px;
    font-weight: bold;
    margin-top: 5px;
}

/* Kotak Online Status */
.online-status {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: black;
    border-radius: 5px;
    padding: 5px 10px;
    margin-top: 10px;
    font-size: 14px;
}

.online-status span {
    color: red;
    margin-right: 5px;
}

/* Tombol Tutup */
/* Tombol Close di Pojok Atas */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

/* Efek Hover pada Tombol Close */
.close-button:hover {
    color: #C6A73D; /* Warna emas biar selaras */
}

/* Efek Hover pada Tombol di Bawah */
.toggle-button:hover {
    background-color: #C6A73D;
    color: #15253D;
}


/* Tombol Toggle (Saat Panel Terbuka) */
.toggle-button {
    position: absolute;
    top: 550px;
    left: 45px;
    transform: translateY(100%) rotate(0deg);
    background-color: #7bae37;
    color: white;
    padding: 10px 15px;
    border-radius: 10px 0px 10px 0;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
    z-index: 1003;
    display: none; /* Tombol ini hanya muncul ketika panel terbuka */
}

/* Saat Panel Dibuka */
.statistik-container.open .statistik-panel {
    transform: translateX(0);
}

/* Saat Panel Terbuka, Tombol Toggle Muncul */
.statistik-container.open .toggle-button {
    display: block;
}


@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}
