/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url('https://cdn.jsdelivr.net/npm/tom-select@2.3.1/dist/css/tom-select.css');

.landing-footer {
  position: fixed;
  bottom: 10%;
}

.flash-message {
  animation: flashMessage 3s forwards;
}

@keyframes flashMessage {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
  }
  8% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  92% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
  }
}

/* Header Dropdown */
#dropdown-switch {
  transform: translate3d(80px, 108px, 0px)!important;
}

#dropdown-manage {
  transform: translate3d(1060px, 55px, 0px)!important;
}

/* Complete custom Tom Select styling with Tailwind */
.ts-wrapper .ts-control {
  border: none;
  padding: 0;
  line-height: 1.5rem;
}

.ts-wrapper .ts-control .item {
  font-size: 12px;
}

.ts-control input[type="text"] {
  width: 0 !important;
  min-width: 0 !important;
  flex-grow: 1;
}

.ts-control > input {
  margin-left: 0 !important;
}

/* Complete dropdown styling override */
.ts-wrapper .ts-dropdown {
  /* Remove default styling and add Tailwind-like styling */
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin-top: 0.25rem;
  z-index: 1000;
}

.ts-wrapper .ts-dropdown .ts-dropdown-content {
  padding: 0.5rem;
  max-height: 16rem;
}

.ts-wrapper .ts-dropdown .option {
  padding: 0.5rem;
  color: #374151;
  cursor: pointer;
  border-radius: 0.25rem;
  font-size: 12px;
  transition: background-color 0.1s ease-in-out;
}

.ts-wrapper .ts-dropdown .option:hover {
  background-color: #f3f4f6;
}

.ts-wrapper .ts-dropdown .option.active {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.ts-wrapper .ts-dropdown .option.selected {
  background-color: #3b82f6;
  color: white;
}

.ts-wrapper .ts-dropdown .option.selected:hover {
  background-color: #2563eb;
}

/* If you have option groups */
.ts-wrapper .ts-dropdown .optgroup {
  border: none;
}

.ts-wrapper .ts-dropdown .optgroup-header {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  background-color: #f9fafb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* No results styling */
.ts-wrapper .ts-dropdown .no-results {
  padding: 0.75rem 1rem;
  color: #9ca3af;
  text-align: center;
  font-style: italic;
}
