/* CSS untuk slider memukau */
.mySwiper {
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Shadow premium */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #f0f0f0; /* Latar jika gambar transparan */
}

/* Perubahan gambar slider tidak full-width */
.swiper-image {
    max-width: 80%; /* Tidak selebar halaman */
    margin: 0 auto; /* Centered */
    padding: 10px; /* Padding samping */
    border-radius: 15px; /* Sudut melengkung bagus */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Shadow ringan */
}

.swiper-slide-active .swiper-image {
    animation: glow 2s infinite alternate; /* Efek glow memukau saat aktif */
}

@keyframes glow {
    0% { filter: brightness(1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
    100% { filter: brightness(1.1) drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)); }
}

/* Navigation arrows dengan hover effect */
.swiper-button-next, .swiper-button-prev {
    color: #108EE9; /* Warna tema DANA */
    transition: transform 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    transform: scale(1.2); /* Membesar saat hover */
}

/* Pagination dots dengan animasi */
.swiper-pagination-bullet {
    background: #108EE9;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.5); /* Dot aktif lebih besar */
}

/* Efek bernafas pada tombol */
.nlhostHref {
    animation: breathing 2s ease-in-out infinite;
}
@keyframes breathing {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.nlhostHref:hover {
    animation: none; /* Hentikan bernafas saat hover */
}

/* CSS untuk loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden awal */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}
.loading-overlay.visible {
    display: flex;
}
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid transparent;
    border-top-color: #108EE9;
    border-right-color: #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-text {
    color: white;
    font-size: 1.2rem;
    margin-top: 20px;
    animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Efek hidup pada gambar di tombol menu */
.menu-image {
    transition: all 0.3s ease; /* Transisi halus */
    animation: image-breathe 3s ease-in-out infinite; /* Animasi idle bernafas + rotasi ringan */
}

@keyframes image-breathe {
    0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    50% { transform: scale(1.1) rotate(2deg); filter: brightness(1.1); box-shadow: 0 0 10px rgba(16, 142, 233, 0.5); } /* Glow + rotate */
    100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}

/* Efek hover: Membesar + bounce */
.nlhostHref:hover .menu-image {
    animation: image-bounce 0.5s ease-in-out; /* Bounce saat hover */
    transform: scale(1.2); /* Membesar lebih */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7); /* Glow kuning bagus */
}

@keyframes image-bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Efek klik: Shake */
.menu-image.shake {
    animation: image-shake 0.5s ease-in-out;
}

@keyframes image-shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

/* Update class popup untuk gunakan slideDown */
.live-popup {
    background: linear-gradient(135deg, #108EE9, #0A5C9E);
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.5s ease-out, glowPulse 2s infinite alternate;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.live-popup.visible {
    opacity: 1;
}

.live-popup img {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Foto profil bulat */
    border: 2px solid #ffd700; /* Border emas bagus */
}

.live-popup-text {
    font-size: 0.9rem;
    line-height: 1.2;
}

.live-popup-text strong {
    color: #ffd700; /* Warna saldo menonjol */
}

/* Animasi slide-down untuk muncul dari atas */
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px rgba(16, 142, 233, 0.5); }
    100% { box-shadow: 0 0 20px rgba(16, 142, 233, 1); }
}