/* Custom styles for Health Plan Comparison Tool */

/* Animation for smooth transitions */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Custom input focus styles */
input:focus, select:focus, textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Tab styles */
.tab-btn {
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  background-color: #dbeafe;
  border-bottom-color: #3b82f6;
}

.tab-btn:hover:not(.active) {
  background-color: #f3f4f6;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Drag and drop styles */
.drag-drop-zone {
  border: 2px dashed #d1d5db;
  transition: all 0.2s ease;
}

.drag-drop-zone.drag-over {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.drag-drop-zone:hover {
  border-color: #9ca3af;
  background-color: #f9fafb;
}

/* Plan card styles */
.plan-card {
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

.plan-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.plan-card.selected {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

/* Result table styles */
.results-table {
  border-collapse: separate;
  border-spacing: 0;
}

.results-table th,
.results-table td {
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

.results-table th:first-child,
.results-table td:first-child {
  border-left: 1px solid #e5e7eb;
}

.results-table thead th {
  border-top: 1px solid #e5e7eb;
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive improvements */
@media (max-width: 768px) {
  .tab-btn {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .plan-card {
    margin-bottom: 1rem;
  }
  
  .results-table {
    font-size: 14px;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}