.CodeMirror {
  height: 500px !important;
  font-family: 'JetBrains Mono', monospace, Consolas, 'Courier New', Courier, monospace;
  font-size: 14px;
  border-radius: 0 0 6px 6px;
  border: 1px solid var(--border-muted);
  border-top: none;
}

.select-bar-wrapper {
  display: flex;
  align-items: center;
}

.lang-picker-dropdown {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-muted);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.error-line-bg {
  background-color: rgba(239, 68, 68, 0.3) !important;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-bottom: 2px solid transparent;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: #ef4444; /* match the html-formatter tool color */
}

#preview-view:-webkit-full-screen {
  height: 100vh !important;
  border-radius: 0 !important;
}
#preview-view:fullscreen {
  height: 100vh !important;
  border-radius: 0 !important;
}
