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

/* Visueel verborgen maar leesbaar voor screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
/
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 3rem 2rem;
}

/* ── Layout: legenda links, WhatsApp rechts ── */
.layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

/* ── Shortcut legenda ── */
.shortcuts {
  width: 180px;
  flex-shrink: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sc-title {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  font-weight: 600;
}

.sc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sc-list li {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.shortcuts kbd {
  background: #fff;
  border: 0.5px solid #ccc;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-family: monospace;
  color: #333;
  line-height: 1.6;
}

/* ── Shell ── */
.wa-shell {
  width: 100%;
  max-width: 480px;
  background: #e5ddd5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

/* ── Header ── */
.wa-header {
  background: #075e54;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

.wa-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.wa-header-name {
  font-size: 18px;
  font-weight: 600;
}

.wa-header-sub {
  font-size: 14px;
  opacity: 0.8;
}

/* ── Chat area ── */
.wa-chat {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

/* ── Bubble wrappers ── */
.bubble-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bubble-wrap.sent {
  align-items: flex-end;
}

.bubble-time {
  font-size: 13px;
  color: #999;
  margin-top: 3px;
}

/* ── Voice bubble ── */
.voice-bubble {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 14px 16px;
  max-width: 90%;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
}

/* ── Play button ── */
.voice-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #075e54;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.15s;
}

.play-btn:hover {
  background: #0a7a6a;
}

/* :focus-visible — MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
.play-btn:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 2px;
}

/* ── Waveform ── */
.waveform {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.bar {
  width: 4px;
  border-radius: 2px;
  background: #ccc;
  transition: background 0.15s;
}

.bar.active {
  background: #075e54;
}

.bar.played {
  background: #25d366;
}

.voice-duration {
  font-size: 14px;
  color: #666;
  min-width: 34px;
  text-align: right;
}

/* ── Progress bar ── */
.progress-wrap {
  margin-top: 6px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #25d366;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Markers ── */
.markers-row {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  flex-wrap: wrap;
  min-height: 0;
}

.marker-badge {
  background: #fff3cd;
  border: 0.5px solid #ffc107;
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 13px;
  color: #856404;
  cursor: pointer;
  transition: background 0.15s;
}

.marker-badge:hover {
  background: #ffe69c;
}

.marker-badge:focus-visible {
  outline: 2px solid #ffc107;
  outline-offset: 2px;
}

/* ── Reply bubble ── */
.reply-bubble {
  background: #d9fdd3;
  border-radius: 12px 0 12px 12px;
  padding: 10px 14px;
  font-size: 16px;
  color: #111;
  max-width: 85%;
}

/* ── Status bar ── */
.status-bar {
  background: #fff;
  border-top: 0.5px solid rgba(0, 0, 0, 0.1);
  padding: 10px 18px;
  font-size: 15px;
  color: #666;
  min-height: 46px;
  display: flex;
  align-items: center;
}

.status-bar.listening {
  color: #075e54;
  font-weight: 600;
}

.status-bar.marked {
  color: #856404;
}

.status-bar kbd {
  background: #f0f0f0;
  border: 0.5px solid #ccc;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 13px;
  font-family: monospace;
  color: #333;
}

/* ── Reply input ── */
.reply-input-row {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #f0f0f0;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  align-items: flex-end;
}

.reply-input-row textarea {
  flex: 1;
  min-height: 80px;
  max-height: 180px;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 22px;
  font-size: 16px;
  font-family: inherit;
  resize: none;
  outline: none;
  line-height: 1.4;
  background: #fff;
}

.reply-input-row textarea:focus {
  border-color: #25d366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

.reply-input-row button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #075e54;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.reply-input-row button:hover {
  background: #0a7a6a;
}

.reply-input-row button:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 2px;
}

kbd {
  background: #fff;
  border: 0.5px solid #ccc;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 13px;
  font-family: monospace;
  color: #333;
}
