/* talk2site — custom styles */

/* ---------- EenvoudigOnline.nl wordmark ---------- */
/* Eenvoudig + .nl = donkerblauw, Online = logo-oranje. Op lichte achtergrond. */
.eo-wordmark { font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.eo-wordmark .eo-a, .eo-wordmark .eo-c { color: #1e4d79; }
.eo-wordmark .eo-b { color: #f7650d; }
/* Lichte variant voor donkere balken (admin/editor header) — blauw zou wegvallen. */
.eo-wordmark--light .eo-a, .eo-wordmark--light .eo-c { color: #f1f5f9; }
.eo-wordmark--light .eo-b { color: #f7650d; }
.eo-logo { display: inline-block; object-fit: contain; }

/* ---------- Live-URLs in go-live modal ---------- */

.live-urls-block {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 12px;
  font-size: 13px;
}
.live-urls-block.live-urls-empty {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}
.live-urls-title {
  font-weight: 600;
  color: #14532d;
  margin-bottom: 6px;
}
.live-url-row {
  display: flex;
  gap: 8px;
  padding: 3px 0;
  font-family: "SF Mono", Consolas, monospace;
}
.live-url-label {
  flex-shrink: 0;
  width: 130px;
  color: #475569;
  font-family: inherit;
  font-size: 12.5px;
}
.live-url-row a {
  color: #047857;
  text-decoration: none;
  word-break: break-all;
}
.live-url-row a:hover { text-decoration: underline; }

/* ---------- Success-dialog na go-live ---------- */

.live-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.15s ease-out;
}
@keyframes fadeIn { from {opacity:0} to {opacity:1} }

.live-success-dialog {
  background: white;
  border-radius: 12px;
  padding: 32px 36px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: center;
}
.live-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  font-size: 36px;
  font-weight: 700;
  line-height: 64px;
  margin: 0 auto 14px;
}
.live-success-dialog h2 {
  font-size: 22px;
  font-weight: 700;
  color: #047857;
  margin: 0 0 6px;
}
.live-success-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.live-success-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
  transition: all 0.12s;
}
.live-success-link:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}
.live-success-link.primary {
  background: #047857;
  color: white;
  border-color: #047857;
  font-weight: 600;
}
.live-success-link.primary:hover {
  background: #065f46;
  border-color: #065f46;
}
.live-success-link.subtle {
  background: white;
  color: #64748b;
  font-size: 12px;
}
.live-success-link .open-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.live-success-close {
  margin-top: 18px;
  padding: 8px 22px;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
}
.live-success-close:hover {
  background: #f1f5f9;
}

/* ---------- Suggest SEO/GEO banner ---------- */

.suggest-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin: 0 0 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0;
}
.suggest-banner > div:first-child {
  flex: 1;
  min-width: 220px;
}
.suggest-banner strong {
  font-size: 14px;
  color: #047857;
}
.suggest-banner .primary-btn {
  background: #047857;
  color: white;
  border-color: #047857;
  font-weight: 600;
  white-space: nowrap;
}
.suggest-banner .primary-btn:hover:not(:disabled) {
  background: #065f46;
  border-color: #065f46;
}
.suggest-banner .primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Refresh chat-nudge ---------- */

.refresh-nudge {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 14px auto 6px;
  padding: 8px 14px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 100px;
  max-width: fit-content;
  font-size: 12.5px;
  color: #64748b;
  cursor: help;
  transition: background 0.15s;
}
.refresh-nudge:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.refresh-nudge-text {
  font-style: italic;
}
.refresh-nudge-btn {
  background: #0f172a;
  color: white;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.12s;
}
.refresh-nudge-btn:hover {
  background: #1e293b;
}

/* ---------- Chat bubbles ---------- */

.msg {
  font-size: 0.875rem;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.msg-user {
  background: #1e293b;
  color: #f1f5f9;
  border-radius: 0.75rem 0.75rem 0.25rem 0.75rem;
  padding: 0.5rem 0.75rem;
  margin-left: auto;
  max-width: 85%;
}

.msg-assistant {
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 0.75rem 0.75rem 0.75rem 0.25rem;
  padding: 0.5rem 0.75rem;
  max-width: 90%;
  white-space: normal;  /* markdown rendered */
}

.msg-assistant.streaming::after {
  content: "▊";
  animation: blink 1s steps(1) infinite;
  margin-left: 2px;
  color: #475569;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Markdown content inside assistant bubble */
.msg-assistant p { margin: 0.25rem 0; }
.msg-assistant p:first-child { margin-top: 0; }
.msg-assistant p:last-child { margin-bottom: 0; }
.msg-assistant strong { font-weight: 600; }
.msg-assistant em { font-style: italic; }
.msg-assistant code {
  background: #e2e8f0;
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.8rem;
}
.msg-assistant pre {
  background: #1e293b;
  color: #f1f5f9;
  padding: 0.5rem;
  border-radius: 0.25rem;
  overflow-x: auto;
  font-size: 0.75rem;
  margin: 0.5rem 0;
}
.msg-assistant pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.msg-assistant ul, .msg-assistant ol {
  margin: 0.25rem 0;
  padding-left: 1.25rem;
}
.msg-assistant li { margin: 0.125rem 0; }
.msg-assistant a {
  color: #0369a1;
  text-decoration: underline;
}

/* ---------- Tool-call rendering ---------- */

.msg-tool {
  background: transparent;
  color: #64748b;
  font-size: 0.7rem;
  font-family: 'Consolas', 'Monaco', monospace;
  padding: 0.25rem 0.5rem 0.25rem 0.75rem;
  border-left: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  line-height: 1.3;
}

.msg-tool .tool-icon {
  font-size: 0.85rem;
  opacity: 0.7;
}

.msg-tool .tool-name {
  font-weight: 600;
  color: #475569;
}

.msg-tool .tool-target {
  color: #1e293b;
  font-weight: 500;
}

.msg-tool .tool-status-ok { color: #059669; font-weight: 600; }
.msg-tool .tool-status-err { color: #dc2626; font-weight: 600; }
.msg-tool .tool-status-info { color: #94a3b8; }
/* Soft hints (AI past zelf aan, geen echte fout) — gedempt grijs */
.msg-tool .tool-status-hint { color: #6b7785; }

/* ---------- Ask widgets ---------- */

.swatch {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  border: 2px solid #cbd5e1;
  cursor: pointer;
  margin: 0.125rem;
  transition: transform 0.1s, border-color 0.1s;
}

.swatch:hover {
  transform: scale(1.1);
  border-color: #0f172a;
}

.image-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #cbd5e1;
  border-radius: 0.375rem;
  cursor: pointer;
  margin: 0.25rem;
  background: white;
}

.image-thumb:hover {
  border-color: #0f172a;
}

/* ---------- Commit-list ---------- */

.commit-item {
  display: block;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  font-size: 0.75rem;
  position: relative;
}

/* Alternerende achtergrond per branch — sandbox = grijstinten, main = groentinten.
   Maakt het visueel meteen duidelijk welke commits werkversie zijn en welke live. */
.commit-item.branch-sandbox.row-even { background: #f1f5f9; }
.commit-item.branch-sandbox.row-odd  { background: #e2e8f0; }
.commit-item.branch-main.row-even    { background: #ecfdf5; }
.commit-item.branch-main.row-odd     { background: #d1fae5; }

.commit-item.branch-sandbox:hover { background: #cbd5e1; }
.commit-item.branch-main:hover    { background: #a7f3d0; }

.commit-item .commit-msg {
  color: #0f172a;
  line-height: 1.3;
}

.commit-item .commit-date {
  color: #64748b;
  font-size: 0.65rem;
  margin-top: 0.125rem;
}

.commit-item .commit-actions {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.375rem;
  flex-wrap: wrap;
}

/* "Meer bekijken (+N)" knop onderaan de versies-lijst. */
.commit-more-row {
  display: block;
  padding: 0.5rem 0.75rem;
  background: transparent;
  text-align: center;
}
.commit-more-btn {
  width: 100%;
  font-size: 0.7rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.3rem;
  background: white;
  border: 1px dashed #94a3b8;
  cursor: pointer;
  color: #475569;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.commit-more-btn:hover {
  background: #f8fafc;
  border-color: #0f172a;
  color: #0f172a;
}

/* Iframe-overlay tijdens AI-thinking: zachte fade-in + moderne spinner. */
.preview-thinking-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}
.preview-thinking-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}
.preview-thinking-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 36px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 240px;
}
.preview-thinking-spinner {
  width: 44px;
  height: 44px;
  animation: preview-spin 0.9s linear infinite;
}
.preview-thinking-arc {
  transform-origin: center;
  /* extra subtle dash-rotate voor 'voortgangs'-gevoel */
  animation: preview-arc-pulse 1.6s ease-in-out infinite;
}
@keyframes preview-spin {
  to { transform: rotate(360deg); }
}
@keyframes preview-arc-pulse {
  0% { stroke-dasharray: 30 200; }
  50% { stroke-dasharray: 100 200; }
  100% { stroke-dasharray: 30 200; }
}
.preview-thinking-label {
  font-size: 14px;
  font-weight: 600;
  color: #1e4d79;
  margin-top: 4px;
}
.preview-thinking-sub {
  font-size: 12px;
  color: #6b7785;
}

.commit-action {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  background: white;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  color: #475569;
  transition: background 0.1s, border-color 0.1s;
}

.commit-action:hover {
  background: #f1f5f9;
  border-color: #475569;
}

.commit-action.preview-btn {
  color: #047857;
  border-color: #6ee7b7;
  background: #ecfdf5;
  font-weight: 500;
}

.commit-action.preview-btn:hover {
  background: #d1fae5;
  border-color: #059669;
}

/* ---------- Preview iframe ---------- */

#preview-frame {
  display: block;
}

#preview-frame.mobile {
  width: 375px !important;
  max-width: 375px !important;
  height: 800px;
  min-height: 800px;
}

/* ---------- Thinking indicator ---------- */

.dot-pulse {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #64748b;
  animation: dot-bounce 1.2s infinite;
}

@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* ---------- Go-live modal ---------- */

.diff-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.8rem;
  font-family: 'Consolas', 'Monaco', monospace;
}

.diff-file .file-path {
  flex: 1;
  color: #1e293b;
  font-weight: 500;
}

.diff-file .added {
  color: #059669;
  font-size: 0.7rem;
}

.diff-file .deleted {
  color: #dc2626;
  font-size: 0.7rem;
}

.diff-commit {
  font-size: 0.75rem;
  padding: 0.25rem 0;
  color: #475569;
}

.diff-commit .sha {
  font-family: 'Consolas', 'Monaco', monospace;
  color: #94a3b8;
  font-size: 0.65rem;
  margin-right: 0.5rem;
}

/* ---------- Misc ---------- */

#drop-overlay {
  position: absolute;
}

textarea#chat-input:focus {
  box-shadow: 0 0 0 2px #cbd5e1;
}

button:disabled {
  cursor: not-allowed;
}

#preview-container.dragover {
  background: #d1fae5;
}

/* ---------- Screenshot preview thumbnail ---------- */

.screenshot-preview {
  margin: 0.25rem 0 0.5rem 0.75rem;
  border-left: 2px solid #cbd5e1;
  padding: 0.25rem 0.5rem;
}

.screenshot-thumb {
  max-width: 220px;
  max-height: 160px;
  border: 1px solid #cbd5e1;
  border-radius: 0.25rem;
  cursor: zoom-in;
  display: block;
  background: white;
}

.screenshot-thumb:hover {
  border-color: #475569;
}

/* ---------- User-message inline image ---------- */

.msg-user-image {
  max-width: 240px;
  max-height: 180px;
  border-radius: 0.5rem;
  border: 2px solid #1e293b;
  cursor: zoom-in;
}

/* ---------- Pinned elements (Shift+klik in preview) ---------- */

.pinned-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: white;
  border: 1px solid #fcd34d;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-family: 'Consolas', 'Monaco', monospace;
  color: #78350f;
}

.pinned-chip .chip-tag {
  background: #f59e0b;
  color: white;
  padding: 0.05rem 0.25rem;
  border-radius: 0.2rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pinned-chip .chip-label {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pinned-chip .chip-remove {
  color: #dc2626;
  cursor: pointer;
  font-weight: 700;
  margin-left: auto;
  padding-left: 0.25rem;
}

.pinned-chip .chip-remove:hover {
  color: #991b1b;
}

.pinned-chip .chip-thumb {
  height: 24px;
  width: 24px;
  object-fit: cover;
  border-radius: 0.2rem;
  border: 1px solid #fcd34d;
}

/* ---------- Media library modal ---------- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.media-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.1s, box-shadow 0.1s;
}

.media-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.media-card .thumb {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #94a3b8;
}

.media-card img.thumb {
  background: repeating-conic-gradient(#f1f5f9 0% 25%, white 0% 50%) 50% / 16px 16px;
}

.media-card .meta {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.media-card .meta .filename {
  font-size: 0.75rem;
  font-weight: 500;
  color: #0f172a;
  word-break: break-all;
  line-height: 1.2;
}

.media-card .meta .info {
  font-size: 0.65rem;
  color: #64748b;
  font-family: 'Consolas', 'Monaco', monospace;
}

.media-card .ref-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.05rem 0.3rem;
  border-radius: 0.2rem;
  display: inline-block;
}

.media-card .ref-badge.used {
  background: #dcfce7;
  color: #166534;
}

.media-card .ref-badge.unused {
  background: #fee2e2;
  color: #991b1b;
}

.media-card .actions {
  display: flex;
  border-top: 1px solid #e2e8f0;
  font-size: 0.65rem;
}

.media-card .actions button {
  flex: 1;
  padding: 0.375rem;
  background: transparent;
  border: none;
  border-right: 1px solid #e2e8f0;
  cursor: pointer;
  color: #475569;
  transition: background 0.1s;
}

.media-card .actions button:last-child {
  border-right: none;
}

.media-card .actions button:hover {
  background: #f1f5f9;
}

.media-card .actions button.delete:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.media-tab.active {
  border-bottom-color: #059669 !important;
  color: #047857 !important;
  font-weight: 600;
}

.media-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.media-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.media-row .icon {
  font-size: 1.5rem;
}

.media-row .filename {
  flex: 1;
  font-weight: 500;
  word-break: break-all;
}

.media-row .info {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.7rem;
  color: #64748b;
}

.media-row .actions {
  display: flex;
  gap: 0.25rem;
}

.media-row .actions button {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  color: #475569;
}

.media-row .actions button.delete {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.media-row .actions button:hover {
  background: #e2e8f0;
}

.media-row .actions button.delete:hover {
  background: #fee2e2;
}

/* ---------- Settings modal ---------- */

.settings-tab.active {
  border-bottom-color: #059669 !important;
  color: #047857 !important;
  font-weight: 600;
}

.settings-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
  margin-top: 0.75rem;
}

.settings-section h4:first-child {
  margin-top: 0;
}

.settings-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0;
  font-size: 0.85rem;
}

.settings-row.full {
  grid-template-columns: 1fr;
}

.settings-row label {
  color: #475569;
  font-weight: 500;
  font-size: 0.8rem;
}

.settings-row .hint {
  font-size: 0.7rem;
  color: #94a3b8;
  font-style: italic;
}

.settings-row input[type="text"],
.settings-row input[type="email"],
.settings-row input[type="tel"],
.settings-row input[type="url"],
.settings-row textarea {
  border: 1px solid #cbd5e1;
  border-radius: 0.25rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.85rem;
  width: 100%;
  background: white;
}

.settings-row input:focus,
.settings-row textarea:focus {
  outline: none;
  border-color: #475569;
  box-shadow: 0 0 0 2px #cbd5e1;
}

.settings-row .check-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-row .check-group input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.settings-row .check-group .check-label {
  color: #0f172a;
  cursor: pointer;
}

.chips-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.25rem;
  background: white;
  min-height: 2rem;
}

.chips-input input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 100px;
  padding: 0.25rem;
  font-size: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #e0e7ff;
  color: #3730a3;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.chip .x {
  cursor: pointer;
  color: #6366f1;
  font-weight: 700;
}

.chip .x:hover {
  color: #312e81;
}

.og-preview-thumb {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: #f1f5f9;
  display: block;
}

.og-preview-thumb.og-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  font-style: italic;
  padding: 1rem;
}

.action-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  background: white;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  color: #475569;
  transition: all 0.1s;
}

.action-btn:hover {
  background: #f1f5f9;
  border-color: #475569;
}

/* ---------- Pre-go-live checks ---------- */

.check-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 0.5rem;
  align-items: start;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.5rem 0.625rem;
}

.check-status {
  font-weight: 700;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.4;
}

.check-body {
  min-width: 0;
}

.check-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.check-details {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.125rem;
  line-height: 1.4;
}

.check-action {
  display: flex;
  align-items: center;
}

.check-fix-btn {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.1s;
}

.check-fix-btn:hover:not(:disabled) {
  background: #c7d2fe;
  border-color: #6366f1;
}

.check-fix-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ============================================================
   Spraakinvoer (microfoon-knop in de editor)
   ============================================================ */
.voice-btn.listening {
  background: #fef2f2 !important;
  border-color: #dc2626 !important;
  color: #b91c1c !important;
  animation: voice-pulse 1.1s ease-in-out infinite;
}
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.0); }
}
/* Live interim-transcript onder het invoerveld */
#voice-interim {
  font-size: 11.5px;
  color: #94a3b8;
  padding: 4px 10px 0;
  font-style: italic;
  min-height: 18px;
}
#voice-interim.active { color: #b91c1c; font-style: normal; }
#voice-interim.active::before { content: "🔴 luisteren — "; }

/* ============================================================
   Rol-gebaseerde UI — klant ziet minder (geen geld/debug/technisch).
   Twee triggers: .role-klant (echte klant-rol) of .view-as-klant
   (admin die tijdelijk in klant-view kijkt). CSS-effect identiek.
   ============================================================ */
body.role-klant #cost-display,
body.role-klant #turn-cost-display,
body.role-klant #wallet-display,
body.role-klant #btn-klant-info,
body.role-klant #btn-admin-portal,
body.role-klant #branch-indicator,
body.role-klant #preview-url,
body.role-klant #settings-wallet-btn,
body.role-klant #settings-subtitle,
body.role-klant .suggest-banner,
body.role-klant [data-stab="dns"],
body.role-klant [data-stab="activity"],
body.role-klant [data-stab="security"],
body.view-as-klant #cost-display,
body.view-as-klant #turn-cost-display,
body.view-as-klant #wallet-display,
body.view-as-klant #btn-klant-info,
body.view-as-klant #btn-admin-portal,
body.view-as-klant #branch-indicator,
body.view-as-klant #preview-url,
body.view-as-klant #settings-wallet-btn,
body.view-as-klant #settings-subtitle,
body.view-as-klant .suggest-banner,
body.view-as-klant [data-stab="dns"],
body.view-as-klant [data-stab="activity"],
body.view-as-klant [data-stab="security"],
body.role-klant .admin-only-flex,
body.view-as-klant .admin-only-flex,
body.role-klant .page-tab-gear,
body.view-as-klant .page-tab-gear {
  display: none !important;
}
/* Voor admin moet .admin-only-flex zich gedragen als inline-flex (de :not in HTML
   zet 'hidden' default; JS verwijdert 'hidden' bij admin-load). Niet nodig om
   hier display te forceren — Tailwind's 'inline-flex' regelt het. */

/* Pagina-tabs (multi-page add-on) */
.page-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  user-select: none;
  position: relative;
  top: 1px; /* zodat de actieve tab over de border-bottom van de bar valt */
}
.page-tab:hover { background: #f1f5f9; color: #1e293b; }
.page-tab.active {
  background: white;
  color: #047857;
  border-color: #cbd5e1;
  font-weight: 600;
}
.page-tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: white;
}
.page-tab-gear {
  font-size: 11px;
  opacity: 0.5;
  cursor: pointer;
  padding: 0 2px;
}
.page-tab:hover .page-tab-gear,
.page-tab.active .page-tab-gear { opacity: 1; }
.page-tab-coming {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
}
.page-tab-coming:hover { background: #f8fafc; color: #475569; }

/* Budget-balk is alleen voor klanten; admin ziet de euro-wallet — TENZIJ
   admin in view-as-klant mode kijkt: dan moet de budget-balk wel zichtbaar
   zijn om de klant-ervaring eerlijk te simuleren. */
body:not(.role-klant):not(.view-as-klant) #budget-bar { display: none !important; }
/* Voor een klant is de mode-badge puur informatief, niet klikbaar (geen convert). */
body.role-klant .mode-badge--clickable,
body.view-as-klant .mode-badge--clickable {
  cursor: default;
  pointer-events: none;
}
/* Admin die in klant-view kijkt: subtiele banner-strip bovenaan met
   terug-knop. Pure-CSS pseudo-element zodat het werkt zonder extra JS. */
body.view-as-klant::before {
  content: "👁  Je kijkt nu in 'klant-view' — wat de klant ziet. Klik op '↩ terug naar admin' rechtsboven om terug te schakelen.";
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #f59e0b;
  color: #1f2937;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  text-align: center;
  z-index: 9999;
  border-bottom: 1px solid #d97706;
  font-family: system-ui, -apple-system, sans-serif;
}
body.view-as-klant { padding-top: 28px; }

/* ============================================================
   Demo / klant mode-aware UI
   ============================================================ */

/* Mode-badge in header (naast branch-indicator) */
.mode-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.mode-badge--klant {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.mode-badge--demo {
  background: rgba(217, 119, 6, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(217, 119, 6, 0.4);
}
.mode-badge--clickable { cursor: pointer; transition: filter 0.15s, transform 0.05s; }
.mode-badge--clickable:hover { filter: brightness(1.25); }
.mode-badge--clickable:active { transform: translateY(1px); }
.branch-name {
  margin-left: 4px;
}

/* Actie-rij in go-live modal — naast elkaar plaatsen op desktop, stack op mobile */
.live-urls-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

/* "Kopieer demo-link"-button (zowel modal als success-dialog) */
.copy-demo-link {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.copy-demo-link--ok {
  background: #047857 !important;
}

/* In de success-dialog wordt copy-demo-link gestyled als live-success-link.
   Override de default <a>-styles met button-equivalent. */
.live-success-link.copy-demo-link {
  background: #334155;
  color: #fff;
  border-color: #334155;
  cursor: pointer;
}
.live-success-link.copy-demo-link:hover {
  background: #1e293b;
  border-color: #1e293b;
}
.live-success-link.copy-demo-link.copy-demo-link--ok {
  background: #047857 !important;
  border-color: #047857 !important;
}

/* ============================================================
   Offline-modus sectie in Live-modal
   ============================================================ */
#offline-section {
  padding-top: 12px;
  padding-bottom: 12px;
}
.offline-section__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
}
.offline-section__status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 240px;
  min-width: 0;
}
.offline-state {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.offline-state--on { color: #047857; }
.offline-state--off { color: #b91c1c; }

/* "Opnieuw publiceren" — knop blijft klikbaar maar lichter groen als er geen
   wijzigingen zijn (ID-selector wint van Tailwind utility-classes). */
#go-live-confirm.go-live-optional {
  background: #6ee7b7;
  color: #065f46;
}
#go-live-confirm.go-live-optional:hover {
  background: #34d399;
}



