:root {
  --primary-color: #4a90e2;
  --secondary-color: #2c3e50;
  --success-color: #2ecc71;
  --danger-color: #e74c3c;
  --background-color: #f8f9fa;
  --text-color: #2c3e50;
  --border-radius: 18px;
  --transition: all 0.3s ease;
}

/*body {*/
/*  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;*/
/*  width: 400px;*/
/*  margin: 0;*/
/*  padding: 0;*/
/*  background: var(--background-color);*/
/*  color: var(--text-color);*/
/*}*/

.header {
  text-align: center;
  font-size: 37px;
  font-weight: 700;
  margin: 5% 0;
  padding: 10px;
  color: var(--secondary-color);
  letter-spacing: 1px;
}

.tabs {
  display: flex;
  justify-content: center;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  margin: 40px 20px 24px 20px;
  padding: 8px;
  gap: 8px;
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  border: none;
  background: #f0f0f0;
  color: var(--secondary-color);
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 1.1em;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.tab.active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 2px 8px rgba(74,144,226,0.10);
}

.tab .material-icons {
  font-size: 22px;
}

.tab-content {
  display: none;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  margin: 0 20px 24px 20px;
  padding: 24px 20px 20px 20px;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

h2 {
  margin: 0 0 20px 0;
  color: var(--secondary-color);
  font-size: 1.3em;
}

.button-group {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  justify-content: center;
}

.button-group button {
  flex: 1;
}

button {
  padding: 12px 0;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  font-size: 1em;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
}

#start-btn {
  background: var(--success-color);
  color: white;
}

#stop-btn {
  background: var(--danger-color);
  color: white;
}

#analyze-btn {
  background: var(--primary-color);
  color: white;
  width: 100%;
  margin-top: 10px;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.transcript-box {
  margin-top: 18px;
  padding: 16px;
  border: 1.5px solid #e1e1e1;
  border-radius: var(--border-radius);
  min-height: 60px;
  background: #f8f9fa;
  color: #222;
  font-size: 1em;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  word-break: break-word;
}

.transcript-box:empty::before {
  content: 'No content yet...';
  color: #bbb;
  font-style: italic;
}

#transcript, #analysis {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-height: 100px;
}
