/* Flight Roster - Custom Styles */

/* Typeahead dropdown */
.typeahead-wrapper {
  position: relative;
}

.typeahead-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
  background: white;
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.typeahead-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.typeahead-item:hover,
.typeahead-item.active {
  background: #eff6ff;
  color: #1d4ed8;
}

.typeahead-item .code {
  font-weight: 600;
  margin-right: 0.5rem;
}

.typeahead-item .name {
  color: #6b7280;
}

/* Travel type cards */
.travel-type-card {
  cursor: pointer;
  transition: all 0.15s ease;
}

.travel-type-card:hover {
  border-color: #3b82f6;
}

.travel-type-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
  ring: 2px solid #2563eb;
  box-shadow: 0 0 0 2px #2563eb;
}

/* Flight status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-scheduled { background: #dbeafe; color: #1e40af; }
.status-active { background: #d1fae5; color: #065f46; }
.status-landed { background: #d1fae5; color: #065f46; }
.status-delayed { background: #fef3c7; color: #92400e; }
.status-delayed-major { background: #fee2e2; color: #991b1b; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-diverted { background: #fce7f3; color: #9d174d; }

/* Copy button animation */
.copy-btn.copied {
  background: #d1fae5 !important;
  color: #065f46 !important;
}

/* Loading spinner */
.spinner {
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Auth overlay */
.auth-overlay {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
}

/* Section collapse */
.section-content {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

/* Smooth form transitions */
.form-section {
  transition: opacity 0.2s ease, max-height 0.3s ease;
}

.form-section.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
