* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.bg-dark {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

.text-coral {
  color: #FF6F61;
}

.bg-coral {
  background-color: #FF6F61;
}

.bg-charcoal {
  background-color: #282828;
}

.bg-gray-700 {
  background-color: #3a3a3a;
}

.text-gray-300 {
  color: #d0d0d0;
}

.text-gray-400 {
  color: #a0a0a0;
}

.text-gray-500 {
  color: #888;
}

.text-blue-300 {
  color: #61AFEF;
}

.btn-primary {
  background-color: #FF6F61;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(255, 111, 97, 0.3);
}

.btn-primary:hover {
  background-color: #FF5545;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 111, 97, 0.4);
}

.btn-secondary {
  background-color: #3a3a3a;
  color: #e0e0e0;
  padding: 0.75rem 1.5rem;
  border: 1px solid #555;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: #4a4a4a;
  border-color: #666;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-success {
  background-color: #28a745;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.input-field {
  width: 100%;
  padding: 1rem;
  background-color: #1a1a1a;
  border: 2px solid #555;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: #FF6F61;
}

.input-field::placeholder {
  color: #666;
}

.chat-container {
  max-height: 60vh;
}

.typing-text {
  color: #e0e0e0;
  font-size: 1.1rem;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

@media (max-width: 640px) {
  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .btn-success {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .chat-container {
    max-height: 50vh;
  }
}