/* Minimal custom CSS - most styling moved to Tailwind classes */

/* Custom classes to avoid bracket notation (not supported in CDN Tailwind) */
.modal-overlay {
  z-index: 9999;
}

.cookie-consent {
  z-index: 10000;
}

.modal-content-width {
  width: 90%;
}

.max-h-screen-90 {
  max-height: 90vh;
}

.min-w-300 {
  min-width: 300px;
}

.max-w-4\/5 {
  max-width: 80%;
}

.max-w-11\/12 {
  max-width: 91.666667%;
}

/* Custom animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpCookie {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.animate-slideIn {
  animation: slideIn 0.3s ease;
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease;
}

.animate-slideUp {
  animation: slideUp 0.3s ease;
}

.animate-slideUpCookie {
  animation: slideUpCookie 0.3s ease-out;
}

/* Status indicator */
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  animation: pulse 2s infinite;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: #e3e3e3;
  border-radius: 12px;
  width: fit-content;
  align-self: flex-start;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #666;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Loader spinner */
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Modal active state */
#cookieSettings.active,
#contactModal.active {
  display: flex !important;
}

/* Scrollbar styling */
.flex-1.overflow-y-auto::-webkit-scrollbar {
  width: 8px;
}

.flex-1.overflow-y-auto::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.flex-1.overflow-y-auto::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

/* Chat CTA buttons - keeping complex gradients */
.chat-cta-button {
  display: inline-block;
  padding: 12px 24px;
  margin: 10px 5px 0 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white !important;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.chat-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.chat-cta-button.secondary {
  background: white;
  color: #667eea !important;
  border: 2px solid #667eea;
}

.chat-cta-button.secondary:hover {
  background: #f7fafc;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

/* Responsive */
@media (max-width: 968px) {
  body > div > div {
    flex-direction: column;
  }
  
  body > div > div > div {
    flex: none;
    height: 50vh;
  }
  
  body > div > div > div:first-child {
    border-right: none;
    border-bottom: 3px solid #ddd;
  }
}
