/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #333;
}

.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 900px;
  width: 100%;
  padding: 40px;
  animation: fadeIn 0.5s ease-in;
}

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

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #666;
  font-size: 1.1em;
}

/* Sections */
.section {
  margin-bottom: 30px;
}

.section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #333;
}

.hidden {
  display: none !important;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* Agent Selection */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.agent-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.agent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-color: #667eea;
}

.agent-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.agent-card h3 {
  font-size: 1.5em;
  margin-bottom: 5px;
  color: #333;
}

.agent-role {
  font-size: 0.9em;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 10px;
}

.agent-desc {
  font-size: 0.85em;
  color: #666;
}

/* Voice Interface */
.meeting-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.meeting-info p {
  margin: 8px 0;
  font-size: 1em;
}

.status-indicator {
  font-weight: 600;
}

.voice-controls {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-mic {
  background: #27ae60;
  color: white;
  padding: 30px 50px;
  font-size: 1.2em;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s;
}

.btn-mic:hover:not(:disabled) {
  background: #229954;
  transform: scale(1.05);
}

.btn-mic:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

.btn-mic.recording {
  background: #e74c3c;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(231, 76, 60, 0);
  }
}

.mic-icon {
  font-size: 2em;
}

.mic-text {
  font-size: 0.9em;
}

/* Transcript */
.transcript-container {
  margin-top: 30px;
}

.transcript-container h3 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #333;
}

.transcript {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
  border: 2px solid #e9ecef;
}

.transcript:empty::before {
  content: 'Transcript verschijnt hier tijdens het gesprek...';
  color: #999;
  font-style: italic;
}

/* Transcript Entries */
.transcript-entry {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  animation: slideIn 0.3s ease-in;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.transcript-entry.transcript-user {
  background: #e3f2fd;
  border-left: 4px solid #2196F3;
}

.transcript-entry.transcript-agent {
  background: #f3e5f5;
  border-left: 4px solid #9c27b0;
}

.transcript-entry.transcript-system {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  font-style: italic;
}

.transcript-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.transcript-icon {
  font-size: 1.2em;
}

.transcript-label {
  font-weight: 600;
  color: #333;
  flex: 1;
}

.transcript-time {
  font-size: 0.85em;
  color: #999;
}

.transcript-text {
  color: #444;
  line-height: 1.5;
  margin-left: 32px;
}

/* Status Messages */
.status {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

/* Footer */
.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  text-align: center;
  color: #666;
  font-size: 0.9em;
}

.debug-info {
  margin-top: 10px;
  font-size: 0.85em;
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  
  .header h1 {
    font-size: 2em;
  }
  
  .agent-grid {
    grid-template-columns: 1fr;
  }
  
  .voice-controls {
    flex-direction: column;
  }
  
  .btn-mic {
    padding: 20px 30px;
    width: 100%;
  }
  
  .transcript {
    max-height: 300px;
  }
}
