/* Base styles */
:root {
  --primary-color: #2563EB;
  --primary-light: #DBEAFE;
  --text-color: #1F2937;
  --light-text: #6B7280;
  --background: #FFFFFF;
  --secondary-background: #F9FAFB;
  --border-color: #E5E7EB;
  --success-color: #10B981;
  --warning-color: #F59E0B;
  --error-color: #EF4444;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background);
  line-height: 1.5;
}

/* Layout */
.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.status-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.action-button:hover {
  background-color: #1d4ed8;
}

.action-button:disabled {
  background-color: var(--light-text);
  cursor: not-allowed;
}

.content {
  flex: 1;
  overflow: hidden;
  padding: 1.5rem 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--light-text);
}

/* Components */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--error-color);
}

.status-dot.connected {
  background-color: var(--success-color);
}

.status-dot.connecting {
  background-color: var(--warning-color);
}

.status-dot.disconnected {
  background-color: var(--error-color);
}

.message-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.current-question {
  background-color: var(--primary-light);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  border-left: 4px solid var(--primary-color);
}

.previous-questions {
  overflow-y: auto;
  flex: 1;
}

.previous-question {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--secondary-background);
  border-left: 3px solid var(--light-text);
  font-size: 0.9375rem;
}

.audio-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

.audio-indicator.silent {
  background-color: var(--light-text);
}

.audio-indicator.speaking {
  background-color: var(--success-color);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse 1.5s infinite;
}

.audio-indicator.thinking {
  background-color: var(--primary-color);
  animation: thinking 2s infinite;
}

@keyframes thinking {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}