:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --background-color: #f5f6fa;
  --text-color: #2c3e50;
  --border-color: #dcdde1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 20px;
}

.header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 {
  font-size: 24px;
  margin-bottom: 5px;
}

.header p {
  font-size: 14px;
  opacity: 0.9;
}

.chat-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
}

#messages {
  height: 400px;
  overflow-y: auto;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: white;
  margin-bottom: 20px;
}

.message {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 8px;
  max-width: 80%;
}

.user-message {
  background-color: var(--secondary-color);
  color: white;
  margin-left: auto;
}

.agent-message {
  background-color: #f1f2f6;
  color: var(--text-color);
}

#messageForm {
  display: flex;
  gap: 10px;
  align-items: center;
}

input[type="text"] {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

#sendButton {
  background-color: var(--secondary-color);
  color: white;
}

#sendButton:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

#startAudioButton {
  background-color: var(--accent-color);
  color: white;
}

#stopAudioButton {
  background-color: #e74c3c;
  color: white;
}

#stopAudioButton:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Scrollbar styling */
#messages::-webkit-scrollbar {
  width: 8px;
}

#messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#messages::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#messages::-webkit-scrollbar-thumb:hover {
  background: #555;
} 