@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
    .pause-on-hover:hover {
        animation-play-state: paused;
    }
    .scroll-on-hover:hover {
        overflow-x: auto;
    }
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }
    .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Hide the default number input arrows */
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -moz-appearance: textfield;
}

/* Hide the Choices.js input (oval) in all modes */
.choices__input {
  display: none !important;
}

.choices__list--dropdown, .choices__list[aria-expanded] {
    z-index: 9999 !important;
}

/* Navbar orange glow override */

/* User icon orange glow (icon only, no box/circle) */
.navbar-glow-orange svg, .navbar-glow-orange i {
  transition: filter 0.3s, color 0.3s;
}
.navbar-glow-orange:hover svg, .navbar-glow-orange:focus svg,
.navbar-glow-orange:hover i, .navbar-glow-orange:focus i {
  filter: drop-shadow(0 0 8px #f97316) brightness(1.2);
  color: #ff8800 !important;
}

/* Remove background/border from user icon glow */
.navbar-glow-orange {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Dropdown fade-out for login/register user icon */
.user-dropdown {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s;
}
.user-dropdown[style*="display: none"] {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Override blue/indigo hover for navbar links */
.hover\:text-indigo-600:hover, .hover\:text-blue-600:hover, .hover\:text-indigo-600:focus, .hover\:text-blue-600:focus {
    color: #f97316 !important;
}
.hover\:bg-indigo-600:hover, .hover\:bg-blue-600:hover, .hover\:bg-indigo-600:focus, .hover\:bg-blue-600:focus {
    background-color: #f97316 !important;
}
.hover\:border-indigo-600:hover, .hover\:border-blue-600:hover, .hover\:border-indigo-600:focus, .hover\:border-blue-600:focus {
    border-color: #f97316 !important;
}

/* For dropdowns and active states */
.hover\:bg-orange-100:hover, .hover\:bg-orange-100:focus, .hover\:bg-orange-900:hover, .hover\:bg-orange-900:focus {
    background-color: #fff7ed !important;
    color: #f97316 !important;
}
