        :root {
            --bg-overlay: rgba(255, 255, 255, 0.65); /* Transparan putih */
            --card-radius: 8px;
            --gap: 20px;
        }

        #bg-layer {
    position: fixed;
    /* Gunakan top/bottom/left/right 0 untuk mengunci di semua sisi */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    /* Gunakan 100vh untuk memastikan tinggi mengikuti layar, 
       tambahkan 10% ekstra untuk 'ruang napas' saat scroll mobile */
    height: 110vh; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    z-index: -1;
    /* Tambahkan property ini untuk optimasi render mobile */
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    transition: background-image 1s ease-in-out, filter 0.8s ease;
    filter: brightness(0.7);
}

        body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: #333;
    background: none !important;
    padding-top: 60px; /* Offset setinggi navbar */
    padding-bottom: 0; /* Hapus padding bottom lama */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE 10+ */
    user-select: none;         /* Standard syntax */
}

/* Izinkan input search tetap bisa diketik */
input {
    user-select: text !important;
    -webkit-user-select: text !important;
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

        /* Top Bar */

        /* Search Bar */
        .search-container {
            position: relative;
    max-width: 560px;
    margin: 60px auto 40px auto; /* Tambah margin atas agar ada jarak dari navbar */
    display: flex;
    align-items: center;
        }
        .search-input {
            width: 100%;
            padding: 15px 40px 15px 20px;
            border-radius: 4px;
            border: none;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            font-size: 16px;
        }

        /* Main Grid Layout - 3 Kolom */
        /*.dashboard {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: var(--gap);
            padding: 20px;
            max-width: 1450px;
            margin: 0 auto;
            align-items: start; /* Penting untuk efek masonry */
       /* }*/

        .dashboard {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: var(--gap);
            padding: 20px;
            margin: 0 2%;
            align-items: start; /* Penting untuk efek masonry */
        }

        .column {
            display: flex;
            flex-direction: column;
            gap: var(--gap);
        }

        /* Widget Card Style */
        .widget {
            border-radius: var(--card-radius);
    padding: 15px;
/*    margin-bottom: var(--gap);*/
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    /* Jangan pasang background-color di sini jika ingin dinamis dari JS */
        }

        .widget-header {
    color: inherit; /* Akan mengikuti warna widgetDiv.style.color */
    font-weight: bold;
    margin-bottom: 10px;
}

        /* Grid Icons inside Widget */
         

        /* Pastikan ini ada di bagian CSS Anda */
.link-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Pastikan mengisi penuh sel grid */
    transition: transform 0.2s;
}
        .link-item:hover { transform: translateY(-3px); }

        .icon-box {
            width: 48px;
            height: 48px;
            background: white; /* Icon background solid sesuai gambar */
            border-radius: 8px; /* Sedikit rounded */
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            margin-bottom: 8px;
            color: #0078d4; /* Warna default icon */
        }

        /* Specific colors mimicking screenshot */
        .fb-color { background-color: #1877f2; color: white; }
        .yt-color { background-color: #ff0000; color: white; }
        .li-color { background-color: #0077b5; color: white; }

        /* Weather Widget Special */
        #weather-widget {
            text-align: center;
        }

        /* Kontainer utama untuk Search & Weather */
.top-interface {
    display: flex;
    flex-direction: row; /* Memastikan menyamping */
    align-items: center;
    justify-content: center;
    gap: 15px; /* Jarak antar kotak */
    max-width: 1100px; /* Lebar maksimal area header */
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Navbar standar Anda */
.navbar {
    display: flex;
    justify-content: space-between; /* Menjaga Kiri dan Kanan tetap di ujung */
    align-items: center;
    padding: 16px 20px;
    color: white;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
/*    transition: all 0.4s ease;*/
transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
    
    /* Penting: Navbar harus relatif agar nav-center bisa absolut terhadapnya */
    position: fixed; 
}

/* Class ini akan ditambahkan lewat JavaScript saat scroll */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.4); /* Muncul background transparan gelap */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(15px);
/*    border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
/*    padding: 8px 20px; /* Sedikit lebih ramping saat di-scroll */*/
}

/* Pastikan nav-left dan nav-right tetap mengambil ruang */
.nav-left, .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Memaksa konten ke ujung kanan */
    align-items: center;
    z-index: 1001; /* Pastikan di atas layer lainnya */
}

.gear-link {
    color: white;
    font-size: 18px;
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 5px;
}

.gear-link:hover {
    opacity: 1;
    transform: rotate(90deg); /* Efek putar estetik saat hover */
    color: #00d2ff;
}

.login-link {
    color: white;
    font-size: 18px;
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 5px;
}

.login-link:hover {
    opacity: 1;
    color: #00d2ff;
}

.nav-left {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap; /* Mencegah teks turun ke bawah */
    overflow: hidden;
    min-width: 200px; /* Beri lebar minimum agar logo tetap di tengah */
}

/* Update pada nav-center */
.nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* HAPUS pointer-events: none; agar area ini bisa menangkap hover dengan baik */
    z-index: 1010; /* Pastikan berada di atas nav-left dan nav-right */
}

/* Update pada nav-logo agar area klik lebih luas & stabil */
.nav-logo {
    height: 33px; 
    opacity: 0.6; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Transisi lebih responsif */
    cursor: pointer;
    filter: brightness(1);
    /* Tambahkan ini untuk memastikan elemen bersih dari gangguan layer lain */
    position: relative;
    pointer-events: auto !important; 
}

.nav-logo:hover {
    opacity: 1; 
    transform: scale(1.05); /* Tambahkan sedikit scale agar terasa interaktif */
    filter: brightness(1.2) drop-shadow(0 0 12px rgba(255, 255, 255, 0.7));
}

/* Widget Cuaca melayang di kanan */
.weather-float-right {
    position: absolute;
    top: 40px; 
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 18px; /* Sedikit lebih lebar agar nama kota tidak terpotong */
    color: white;
    min-width: 170px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 1000;
    margin-top: 10px;
}

.search-container {
    position: relative;
    max-width: 560px;
    margin: 40px auto;
    display: flex;
    align-items: center;
}

/* Logo Google di kiri */
.search-brand-logo {
    position: absolute;
    left: 15px;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* Ikon Kaca Pembesar di kanan mentok */
.search-icon-right {
    position: absolute;
    right: 20px;
    color: #888;
    font-size: 18px;
    pointer-events: none;
}

/* Sesuaikan padding input agar teks tidak menabrak ikon */
.search-input {
    width: 100%;
    padding: 15px 55px 15px 50px; /* Kiri 50px untuk logo, Kanan 55px untuk kaca pembesar */
    border-radius: 30px;
    border: none;
    background: white;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 4px 25px rgba(0,0,0,0.25);
}

/* Kotak Pencarian */

/* Widget Cuaca Mini */
.weather-header-box {
    flex-shrink: 0; /* Mencegah widget menciut atau terhimpit */
    background: rgba(255, 255, 255, 0.15); /* Transparan gelap/terang */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    height: 54px; /* Samakan dengan tinggi search bar */
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: white;
    min-width: 150px; /* Lebar minimum agar konten tidak penuh */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* Perbaikan untuk tampilan Mobile agar tidak bertumpuk */
@media (max-width: 768px) {
    .top-interface {
        flex-direction: column; /* Tumpuk ke bawah jika layar HP */
        align-items: stretch;
    }
    .weather-header-box {
        justify-content: center;
    }
}

/* Container isi widget yang bisa menggulung */
.widget-body {
    max-height: 1000px; /* Nilai besar agar bisa menampung isi */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
    opacity: 1;
}

/* State saat widget tertutup */
.widget.collapsed .widget-body {
    max-height: 0;
    opacity: 0;
}

/* Header widget agar terlihat bisa diklik */
.widget-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

/* Ikon panah indikator */
.widget-header::after {
    content: '\f078'; /* Ikon FontAwesome Chevron Down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Putar panah saat tertutup */
.widget.collapsed .widget-header::after {
    transform: rotate(-90deg);
}

.app-footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    color: white; /* Paksa jadi putih solid */
    font-size: 13px;
    z-index: 9999;

    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); /* Shadow agar teks terbaca di gambar terang */
}

/* Animasi detak jantung tetap dipertahankan */
.text-danger {
    color: #ff4d4d;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.managed-org {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 5%;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.footer-content-wo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 5%;
}

.footer-divider {
    opacity: 0.3;
}

.app-credit strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.text-danger {
    color: #e74c3c;
    animation: heartbeat 1.5s infinite; /* Efek detak jantung pada icon heart */
}

/* Animasi sederhana untuk icon heart */
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsif: tumpuk di layar kecil */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 5px;
    }
    .footer-divider {
        display: none;
    }
}

.weather-absolute {
    position: absolute; /* Menempel pada halaman/body */
    top: 80px; /* Jarak dari atas halaman (di bawah navbar) */
    right: 20px; /* Jarak dari kanan */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 18px;
    color: white;
    min-width: 170px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 10; /* Di bawah navbar (z-index 1000) tapi di atas background */
    display: none; /* Tetap none, akan dimunculkan oleh JS */
}

.rss-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    align-items: center;
}
.rss-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background: #333;
}
.rss-title {
    font-size: 13px;
    color: white;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rss-title:hover { color: #00d2ff; }

/* Animasi Putar Tombol Refresh */
.spinning { animation: rotate 1s linear infinite; }
@keyframes rotate { from {transform: rotate(0deg);} to {transform: rotate(360deg);} }

button:disabled {
    opacity: 0.3;
    cursor: not-allowed !important;
}

button:hover:not(:disabled) {
    background: rgba(255,255,255,0.3) !important;
}

/* Mempercantik scrollbar mini untuk RSS */
#rss-content-area::-webkit-scrollbar { width: 4px; }
#rss-content-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

/* Animasi putar tombol refresh */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

/* Jarak artikel lebih rapat */
.rss-entry {
    display: flex; 
    gap: 8px; 
    margin-bottom: 6px; /* Jarak antar artikel dirapatkan */
    padding-bottom: 6px; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    height: 40px; /* Tinggi tetap agar konsisten */
    align-items: center;
}

/* Hilangkan scrollbar */
#rss-content-area {
    overflow: hidden;
}

/* Styling Tombol Pagination Dinamis */
.rss-nav-btn {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: inherit; /* Mengikuti warna teks widget yang sudah Anda atur di JS */
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.2s;
}

.rss-nav-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.2);
}

/* Jika widget berwarna gelap (68, 68, 68), buat tombol lebih terang */
.widget[style*="rgb(68, 68, 68)"] .rss-nav-btn,
.widget[style*="#444444"] .rss-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Skeleton dinamis mengikuti warna teks widget */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: currentColor;
    opacity: 0.1; /* Membuatnya redup sesuai warna teks */
    border-radius: 4px;
}

/* Animasi kilatan cahaya (shimmer) */
.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

/* Jika di widget gelap, kilatannya disesuaikan */
.widget[style*="rgb(68, 68, 68)"] .skeleton::after,
.widget[style*="#444444"] .skeleton::after {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.skeleton-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    height: 50px;
    align-items: center;
}

#time {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease;
    display: inline-block; /* Penting agar transform bekerja */
}

/* State saat teks sedang berganti (keluar) */
.text-exit {
    transform: translateY(-20px); /* Meluncur ke atas */
    opacity: 0;
}

/* State saat teks baru masuk */
.text-enter {
    transform: translateY(20px); /* Mulai dari bawah */
    opacity: 0;
}

.logout-link {
    color: white;
    font-size: 18px;
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 5px;
}

.logout-link:hover {
    color: #fff !important;
    transform: scale(1.1);
    filter: brightness(1.2);
}

.custom-note-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.note-overlay-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    color: #333;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}
.note-overlay-header {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.note-overlay-header h2 { margin: 0; font-size: 1.4rem; color: #1a1a1a; }
.close-overlay-btn { background: none; border: none; font-size: 2rem; cursor: pointer; color: #999; }
.note-overlay-body {
    padding-left: 25px;
  padding-right: 25px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.8;
    font-size: 1.1rem;
}
.note-overlay-footer { padding: 15px 25px; border-top: 1px solid #eee; text-align: right; }
.btn-close-custom {
    background: #6c757d; color: #fff; border: none;
    padding: 8px 20px; border-radius: 5px; cursor: pointer;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.btn-close-custom {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 8px 25px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-close-custom:hover {
    background: rgba(0, 0, 0, 0.2) !important;
    color: #000 !important;
}

.btn-close-custom:active {
    transform: scale(0.98);
}

/* Sembunyikan widget cuaca khusus di tablet dan HP */
@media screen and (max-width: 1024px) {
    #weather-header.weather-absolute {
        display: none !important;
    }
}

/* Styling Popup Donasi */        
.donate-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Default hidden, JS yang akan memunculkan */
    justify-content: center; 
    align-items: center;
    z-index: 99999; /* Sangat tinggi agar di atas semua elemen */
    backdrop-filter: blur(5px);
}
.donate-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: scaleIn 0.3s ease-out;
}
.donate-box i { color: #e74c3c; font-size: 25px; margin-bottom: 4px; }
.donate-box h2 { margin: 0 0 10px; color: #333; }
.donate-box p { color: #666; line-height: 1.5; margin-bottom: 20px; }
.donate-btn {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: flex;            /* Mengaktifkan mode flex */
    align-items: center;      /* Center secara vertikal */
    justify-content: center;  /* Center secara horizontal */
    gap: 6px;                /* Memberi jarak yang konsisten antara ikon dan teks */
    
    /* Sisa properti lainnya */
    text-decoration: none;
}
.donate-btn:hover { background: #2ecc71; transform: translateY(-2px); }
.close-donate {
    display: block;
    margin-top: 15px;
    color: #999;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- CALENDAR WIDGET STYLES --- */
.calendar-wrapper {
    padding: 5px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 14px;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    margin-bottom: 15px;
}
.cal-day-name {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    margin-bottom: 5px;
}
.cal-date {
    font-size: 12px;
    padding: 6px 0;
    border-radius: 4px;
    cursor: default;
    position: relative;
    color: inherit;
}
.cal-date:hover {
    background: rgba(255,255,255,0.1);
}
.cal-date.today {
    background: #0078d4;
    color: white;
    font-weight: bold;
}
.cal-date.has-event::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #e74c3c; /* Merah untuk event */
    border-radius: 50%;
}
.cal-date.has-holiday::after {
    background: #2ecc71; /* Hijau untuk libur */
}
.cal-date.faded {
    opacity: 0.3;
}

/* List Event di Bawah Kalender */
.event-list-mini {
    max-height: 150px;
    overflow-y: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}
.event-item-mini {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 11.5px;
    align-items: center;
}
.event-date-badge {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
}
.event-title-mini {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Scrollbar halus untuk list event */
.event-list-mini::-webkit-scrollbar { width: 3px; }
.event-list-mini::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); }

/* Highlight Countdown di Navbar */
.countdown-highlight {
    color: #ffec53; /* Kuning terang agar terlihat */
}
@keyframes pulseSlow {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Mengubah warna semua link di dalam area catatan */
.note-render-area-dynamic a, 
#fullNoteContentCustom a {
    color: #ff4d4d !important; /* Warna merah cerah */
    text-decoration: underline; /* Agar terlihat jelas bahwa itu link */
    font-weight: bold;
}

/* Efek saat link diarahkan kursor (hover) */
.note-render-area-dynamic a:hover, 
#fullNoteContentCustom a:hover {
    color: #ff0000 !important; /* Merah lebih gelap saat hover */
    text-decoration: none;
}

/* Memastikan klik pada area header termasuk panah otomatis memicu fungsi JS */
.widget-header {
    pointer-events: auto !important;
}

/* Jika panah otomatisnya berupa pseudo-element :after */
.widget-header::after {
    pointer-events: none; /* Klik akan 'tembus' ke header yang punya fungsi onclick */
}

.event-wrapper {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

/* Label yang diam */
.event-label {
    white-space: nowrap;
    margin-right: 5px;
}

/* Area box untuk teks berjalan */
.marquee-box {
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    width: 250px; /* Batasi lebar area jalan teks */
}

/* Animasi teksnya */
.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 5s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
body, #bg-layer, #bg-video {
    background-color: #000 !important;
}

/* Tambahkan transisi halus agar saat muncul tidak mengagetkan */
#bg-layer, #bg-video {
    transition: opacity 0.5s ease-in-out;
}

/* Sembunyikan video sampai benar-benar siap diputar */
#bg-video {
    opacity: 0;
}