/* Validation and animation styles */

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade out animation */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Apply animations */
.animate-fadeIn {
  animation: fadeIn 0.3s ease-in-out forwards;
}

.animate-fadeOut {
  animation: fadeOut 0.3s ease-in-out forwards;
}

/* Validation error styles */
.validation-error {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #ef4444;
  /* red-500 */
}

/* Error highlight for inputs */
input.border-red-500,
select.border-red-500,
.dropdown-btn.border-red-500 {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444;
}

/* Toast notification styles */
.toast-notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 1rem 1.5rem;
  background-color: #ef4444;
  /* red-500 */
  color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 50;
  display: flex;
  align-items: center;
}

/* Required field indicator */
.required-field::after {
  content: '*';
  color: #ef4444;
  margin-left: 0.25rem;
}

/* Custom scrollbar styling for dropdown */
.dropdown-menu ul::-webkit-scrollbar,
#extras-days-container::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu ul::-webkit-scrollbar-track,
#extras-days-container::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.dropdown-menu ul::-webkit-scrollbar-thumb,
#extras-days-container::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  /* brand-primary-500 */
  border-radius: 10px;
  transition: background 0.3s ease;
}

.dropdown-menu ul::-webkit-scrollbar-thumb:hover,
#extras-days-container::-webkit-scrollbar-thumb:hover {
  background: #00463a;
  /* brand-primary-600 - darker on hover */
}

/* Firefox scrollbar styling */
.dropdown-menu ul,
#extras-days-container {
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}