/* Chat interface fade-in animation */
#chatInterface {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in, visibility 0.6s ease-in;
}

#chatInterface.fade-in {
  opacity: 1;
  visibility: visible;
}

/* Chat message styles */
.message {
  max-width: 348px;
  padding: 10px 14px;
  border-radius: 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.32px;
  word-wrap: break-word;
  animation: slideIn 0.3s ease-out;
}

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

.user-message {
  background-color: #38220f;
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.assistant-message {
  background-color: #ead4c3;
  color: #38220f;
  align-self: flex-start;
  margin-right: auto;
}

.send-button:hover {
  background-color: rgba(56, 34, 15, 0.9) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(56, 34, 15, 0.2);
}

.send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-message {
  background: #f8d7da !important;
  color: #721c24 !important;
  border: 1px solid #f5c6cb;
}

/* Responsive styles for mobile */
@media (max-width: 640px) {
  .message {
    max-width: calc(100% - 20px);
    font-size: 14px;
    padding: 8px 12px;
  }
  
  /* Ensure proper viewport height on mobile */
  body {
    min-height: -webkit-fill-available;
  }
  
  html {
    height: -webkit-fill-available;
  }
}
