/* ==========================================================================
   IME Dakar - Custom Component Styles & Interactive Overrides
   ========================================================================== */

/* Prevent background scroll when modal is open */
.ime-modal-open {
  overflow: hidden !important;
}

/* Modal fade & scale animations */
.ime-modal-backdrop {
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ime-modal-backdrop.active {
  opacity: 1;
}

.ime-modal-container {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}
.ime-modal-container.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Scrollbar utilities */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Filter pills active states */
.ime-level-btn.active {
  background-color: #f59e0b !important;
  color: #020617 !important;
  border-color: #f59e0b !important;
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.25);
}

.ime-campus-tab.active {
  background-color: #f59e0b !important;
  color: #020617 !important;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2);
}

/* Quiz Option Interactive States */
.ime-quiz-option {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.ime-quiz-option:hover {
  border-color: #f59e0b !important;
  background-color: #fffbeb !important;
  transform: translateY(-2px);
}
.ime-quiz-option.selected {
  border-color: #d97706 !important;
  background-color: #fef3c7 !important;
  box-shadow: 0 0 0 2px #f59e0b !important;
}

/* FAQ Accordion state */
.ime-faq-item .ime-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.ime-faq-item.open .ime-faq-answer {
  max-height: 500px;
}
.ime-faq-item.open .ime-faq-icon {
  transform: rotate(180deg);
}

/* Range sliders */
input[type="range"] {
  accent-color: #f59e0b;
}

/* Focus styles */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

/* Print Styles */
@media print {
  .no-print, header, footer, button, .ime-fixed-buttons {
    display: none !important;
  }
}
