:root {
  --primary-color: #4a6fa5;
  --primary-light: #e8f0fe;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-color: #dee2e6;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.chat-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  flex: 1;
  width: 100%;
}

.chat-header {
  text-align: center;
  margin-bottom: 2rem;
}

.chat-header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.chat-header .subtitle {
  color: var(--secondary-color);
  font-size: 1rem;
}

.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  max-height: 800px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.chat-history {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chat-message {
  display: flex;
  gap: 1rem;
  max-width: 80%;
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.message-avatar i {
  font-size: 1.2rem;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.message-text {
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius);
  line-height: 1.5;
  font-size: 0.95rem;
  position: relative;
}

.bot-message .message-text {
  background-color: var(--light-color);
  border-top-left-radius: 0;
}

.user-message .message-text {
  background-color: var(--primary-color);
  color: white;
  border-top-right-radius: 0;
}

.message-time {
  font-size: 0.75rem;
  color: var(--secondary-color);
  opacity: 0.8;
}

.quick-questions {
  padding: 0 1.5rem 1rem;
  border-top: 1px solid var(--border-color);
}

.quick-questions h3 {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-question {
  padding: 0.5rem 0.75rem;
  background-color: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.quick-question:hover {
  background-color: #e9ecef;
}

.input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: #f8f9fa;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.input-wrapper textarea {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  resize: none;
  min-height: 50px;
  max-height: 150px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

.input-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.voice-btn, .send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.voice-btn {
  background-color: var(--light-color);
  color: var(--secondary-color);
}

.send-btn {
  background-color: var(--primary-color);
  color: white;
}

.voice-btn:hover {
  background-color: #e9ecef;
}

.send-btn:hover {
  background-color: #3a5a8f;
}

.typing-indicator {
  display: flex;
  gap: 0.3rem;
  padding: 0.5rem 0;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  opacity: 0.4;
  animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .chat-container {
    margin: 1rem auto;
    padding: 0 0.75rem;
  }
  
  .chat-wrapper {
    height: calc(100vh - 150px);
  }
  
  .chat-history {
    padding: 1rem;
  }
  
  .chat-message {
    max-width: 90%;
  }
  
  .quick-buttons {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .quick-question {
    white-space: nowrap;
  }
  
  .input-area {
    padding: 0.75rem;
  }
}