/* Gaya tambahan */
html {
  font-size: 13px;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f0f2f5;
  height: var(--app-height, 100vh);
  overflow-y: scroll;
}

/* Style untuk teks conversation agar line break terlihat dengan baik */
#instruction-text {
  white-space: pre-wrap; /* Preserves line breaks and spaces */
  word-wrap: break-word; /* Break long words if needed */
}

.header-top {
  background-color: #1a1a1a;
  color: white;
}

.header-bottom,
.footer-top-line {
  background-color: #5a8a48;
  color: white;
}

.footer-main {
  background-color: #1a1a1a;
  color: white;
}

.btn-finish {
  background-color: #f0c27b;
  color: #333;
}

.btn-nav {
  background-color: #5a8a48;
  color: white;
}

/* Gaya untuk panah di tombol navigasi soal */
.btn-question.active::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #5a8a48; /* Warna panah */
}

.answer-option {
  cursor: pointer;
  transition: background-color 0.2s;
}

.answer-option:hover {
  background-color: #e9ecef;
}

/* Gaya untuk jawaban yang dipilih */
.answer-option.selected {
  background-color: #cfe2ff;
  border-color: #0d6efd;
  color: #0a58ca;
}

.btn-question.answered {
  background-color: #386641; /* Warna hijau lebih gelap */
}

/* Animasi fade-in untuk halaman hasil */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Utility class untuk menyembunyikan scrollbar tapi tetap bisa scroll */
.no-scrollbar::-webkit-scrollbar {
  display: none; /* Untuk Chrome, Safari, dan Opera */
}

.no-scrollbar {
  -ms-overflow-style: none; /* Untuk Internet Explorer dan Edge */
  scrollbar-width: none; /* Untuk Firefox */
}

/* Category header styling */
.col-span-full {
  grid-column: 1 / -1;
}

/* Packet button hover effect */
button:has(.fa-file-alt):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===================================== */
/* PACKET SELECTION - MODERN UI */
/* ===================================== */

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Category section spacing */
.category-section {
  animation: fadeIn 0.4s ease-out;
}

.category-section:not(:last-child) {
  margin-bottom: 3rem;
}

/* Packet card hover effects */
.packet-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.packet-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Search input focus effect */
#search-packet-input:focus {
  transform: translateY(-2px);
}

/* Gradient text */
.text-transparent {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Smooth scrolling */
#packet-selection-container {
  scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .packet-card {
    padding: 1rem;
  }

  .category-section h2 {
    font-size: 1.5rem;
  }
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f59e0b;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 50;
  animation: slideUp 0.3s ease-out;
  display: flex;
  align-items: center;
  font-weight: 600;
}

@keyframes slideUp {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 5rem;
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    bottom: 5rem;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}
