/* ZebraAI Medical Assistant Styles */

/* Custom scrollbar for chat area */
#chatMessages::-webkit-scrollbar {
  width: 6px;
}

#chatMessages::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

#chatMessages::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 3px;
}

#chatMessages::-webkit-scrollbar-thumb:hover {
  background: #16a34a;
}

/* Zebra gradient */
.zebra-gradient {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.zebra-gradient-light {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 50;
  animation: slideIn 0.3s ease-out;
}

.toast-success {
  background: #22c55e;
}

.toast-error {
  background: #ef4444;
}

.toast-warning {
  background: #f59e0b;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Bounce animation for loading dots */
@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Chat message animations */
.chat-message {
  animation: fadeInUp 0.3s ease-out;
}

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

/* Button hover effects */
.btn-primary {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* Card styles */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

/* Input focus styles */
input:focus, textarea:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Medical disclaimer styling */
.medical-disclaimer {
  background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
  border-left: 4px solid #eab308;
  padding: 16px;
  border-radius: 0 8px 8px 0;
}

.medical-disclaimer-emergency {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-left: 4px solid #ef4444;
}

/* Source citation styles */
.source-citation {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.875rem;
  margin-top: 8px;
}

.source-citation a {
  color: #22c55e;
  text-decoration: underline;
  transition: color 0.2s;
}

.source-citation a:hover {
  color: #16a34a;
}

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Consent page specific styles */
.consent-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #22c55e;
}

.eula-scroll-area {
  max-height: 300px;
  overflow-y: auto;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .chat-container {
    height: calc(100vh - 200px);
  }
  
  #chatMessages {
    height: 400px;
  }
}

/* Prose styling for AI responses */
.prose {
  line-height: 1.6;
}

.prose strong {
  color: #1f2937;
  font-weight: 600;
}

.prose ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 8px 0;
}

.prose li {
  margin: 4px 0;
}

/* Header navigation */
.nav-link {
  color: #374151;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover {
  background: #f3f4f6;
  color: #22c55e;
}

.nav-link-active {
  background: #dcfce7;
  color: #16a34a;
}

/* Footer styling */
.footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 20px;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Form validation states */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.input-success {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2) !important;
}

.error-text {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 4px;
}

/* Checkbox styling */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.checkbox-container:hover {
  border-color: #22c55e;
  background: #f0fdf4;
}

/* Age verification badge */
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Zebra stripes pattern (decorative) */
.zebra-pattern {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(34, 197, 94, 0.05) 10px,
    rgba(34, 197, 94, 0.05) 20px
  );
}
