/* --- ANIMASI LOGO BERPUTAR 10 DETIK --- */
@keyframes spinHorizontal {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
.logo-spin {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  animation: spinHorizontal 10s linear 1; /* hanya sekali selama 10 detik */
  animation-fill-mode: forwards; /* biar berhenti di posisi terakhir */
}

/* --- ANIMASI SLIDE KE BAWAH --- */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-down {
  animation: slideDown 1s ease forwards;
}

/* --- STYLING TAMBAHAN UNTUK LOGO DAN JUDUL --- */
.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo-container h4 {
  font-weight: 600;
  margin-top: 10px;
  color: #2c3e50;
}
/* ==== ANIMASI FADE + SLIDE ==== */
@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Tambahkan ke elemen kiri dan kanan */
.fade-in-left.slide-left {
  animation: fadeSlideLeft 1s ease forwards;
}

.fade-in-right.slide-right {
  animation: fadeSlideRight 1s ease forwards;
}

/* Navbar tetap hijau */
.animated-navbar {
  background-color: #167a3f !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Tombol logout */
.btn-logout-fade {
  transition: all 0.3s ease;
}
.btn-logout-fade:hover {
  background-color: #fff !important;
  color: #167a3f !important;
  transform: scale(1.05);
}
#callSection {
  transition: all 0.3s ease;
  border: 2px solid #167a3f;
  box-shadow: 0 0 0 transparent;
}

#callSection:focus {
  border-color: #0f5c2e;
  box-shadow: 0 0 10px rgba(22,122,63,0.4);
  transform: scale(1.02);
}
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  transition: all 0.3s ease;
}

#callNext {
  animation: slideUpFade 0.6s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

#resetBtn {
  animation: slideUpFade 0.6s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

/* Hover lebih dinamis */
#callNext:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 128, 0, 0.3);
}
#resetBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}
/* Efek mengembang saat hover pada semua tombol */
button,
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.btn:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* ✨ Efek fade-in + scale lembut untuk semua konten */
.page-animate {
  animation: fadeScaleIn 0.6s ease forwards;
  opacity: 0;
  transform: scale(0.97);
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Sedikit delay berurutan agar elemen muncul bertahap */
.page-animate:nth-child(1) { animation-delay: 0.1s; }
.page-animate:nth-child(2) { animation-delay: 0.2s; }
.page-animate:nth-child(3) { animation-delay: 0.3s; }
.page-animate:nth-child(4) { animation-delay: 0.4s; }
.page-animate:nth-child(5) { animation-delay: 0.5s; }

/* --- ANIMASI TAMBAHAN --- */
.fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- LOGO PN TONDANO --- */
.img {
    width: 90px;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.img:hover {
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .img {
        width: 70px;
    }
}

/* --- KARTU MEJA LAYANAN --- */
.section-card {
    border-radius: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
}

/* --- HASIL ANTRIAN --- */
.result-container {
    border-radius: 15px;
    animation: fadeIn 0.8s ease both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
/* ======= Efek tombol umum ======= */
.btn-zoom,
.section-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-zoom:hover,
.section-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-zoom:active,
.section-card:active {
  transform: scale(0.95);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* ======= Efek halus lainnya ======= */
.fade-in-up {
  animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======= Penataan umum ======= */
body {
  background-color: #f8f9fa;
}

.welcome-section h1 {
  font-size: 2rem;
  color: #212529;
}

.section-card {
  border-radius: 15px;
}

.result-container {
  border-radius: 20px;
  background: #ffffff;
}
