/* Pending Imports Page Styles */

.import-page-header {
  margin-bottom: 2.5rem;
}

.import-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.import-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
}

.import-alert {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #e5e7eb;
}

.import-alert--info {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
}

.import-alert--warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.import-alert-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.import-alert-title {
  color: #111827;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.import-alert-title--warning {
  color: #92400e;
}

.import-alert-text {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.import-alert-text--warning {
  color: #b45309;
}

.import-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.import-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.import-card {
  background-color: white;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.import-card:hover {
  border-color: #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.import-card-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.import-card-main {
  flex: 1;
  min-width: 0;
}

.import-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.import-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.import-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.import-badge--flight {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.import-badge--accommodation {
  background-color: #f3e8ff;
  color: #7e22ce;
}

.import-badge--warning {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
}

.import-card-details {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.import-card-sep {
  color: #e5e7eb;
}

.import-card-arrow {
  color: #9ca3af;
}

.import-card-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.import-card-no-trips-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.import-card-primary-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.import-card-helper-text {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

.import-card-secondary-action {
  margin-top: 0.25rem;
}

.import-btn-delete-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b91c1c;
  cursor: pointer;
}

.import-btn-delete-text:hover {
  color: #991b1b;
  text-decoration: underline;
}

.import-btn-delete-text-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
}

.import-icon-sm {
  width: 1.25rem;
  height: 1.25rem;
}

.trips-create-btn {
  background: #db2777;
  color: white !important;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(219, 39, 119, 0.2);
}

.trips-create-btn:hover {
  background: #be185d;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(219, 39, 119, 0.3);
}

.import-actions-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f9fafb;
  padding: 0.375rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.import-select {
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  min-width: 14rem;
  outline: none;
}

.import-btn-assign {
  background: #111827;
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.import-btn-assign:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

.import-time-adjustment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0 0.75rem;
  height: 2.25rem;
}

.import-time-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  user-select: none;
}

.import-time-input {
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  outline: none;
  width: 5.5rem;
}

.import-btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: white;
  border: 1px solid #fee2e2;
  border-radius: 0.625rem;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s;
}

.import-btn-delete:hover {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: scale(1.05);
}

.import-link-new-trip {
  font-size: 0.875rem;
  color: #db2777;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.import-link-new-trip:hover {
  color: #be185d;
  text-decoration: underline;
}

.import-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  border: 2px dashed #e5e7eb;
  border-radius: 1.5rem;
  background-color: white;
}

.import-empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.import-empty-text {
  font-size: 1rem;
  color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .import-card-layout {
    flex-direction: column;
    align-items: stretch;
  }
  
  .import-card-actions-wrapper {
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
  }
  
  .import-actions-form {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .import-title {
    font-size: 1.75rem;
  }

  .import-actions-form {
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    border: none;
    padding: 0;
  }

  .import-select {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    min-width: 0;
    margin-bottom: 0.5rem;
  }

  .import-btn-assign {
    padding: 0.75rem;
  }
}

/* Breadcrumbs Styling */
.breadcrumbs {
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.breadcrumb-link {
  color: #4A6FA5;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: #3A5A87;
  text-decoration: underline;
}

.breadcrumb-home-icon {
  width: 1.25rem !important;
  height: 1.25rem !important;
  flex-shrink: 0;
}

.breadcrumb-separator {
  width: 1rem !important;
  height: 1rem !important;
  margin: 0 0.5rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.breadcrumb-current {
  color: #111827;
  font-weight: 500;
}

/* Recently Updated Trips Section */
.recent-trips-section {
  background: white;
  border-radius: 1.5rem !important;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  margin-top: 3.5rem;
  border: 1px solid #e5e7eb;
}

.recent-trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.recent-trip-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 160px;
}

.recent-trip-card:hover {
  background: white;
  border-color: #db2777;
  box-shadow: 0 10px 15px -3px rgba(219, 39, 119, 0.1), 0 4px 6px -2px rgba(219, 39, 119, 0.05);
  transform: translateY(-3px);
}

.recent-trip-card--header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.recent-trip-icon {
  font-size: 1.25rem;
  background: white;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.recent-trip-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.recent-trip-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.recent-trip-date {
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.recent-trip-updated {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

.recent-trip-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
}

.recent-trip-action-link {
  font-size: 0.75rem;
  font-weight: 800;
  color: #db2777;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.recent-trip-card:hover .recent-trip-action-link {
  color: #be185d;
}

/* Trip type color accents */
.recent-trip-card--personal { border-top: 3px solid #db2777; }
.recent-trip-card--work { border-top: 3px solid #4A6FA5; }

/* Animated removal for Turbo Stream triage */
.import-card.removing {
  animation: vanish 0.35s ease-in forwards;
  pointer-events: none;
}

@keyframes vanish {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.9) translateY(10px); }
}
