.splitter {
  width: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  cursor: col-resize;
  position: relative;
  z-index: 10;
}
.splitter:hover {
  background: linear-gradient(90deg, #2563eb, #059669);
  width: 6px;
}
.splitter:active {
  background: linear-gradient(90deg, #1d4ed8, #047857);
}
.panel {
  transition: width 0.2s ease;
}
.markdown-full {
  font-size: 1.25rem;
  line-height: 1.8;
  padding: 2rem;
}
.prose-invert {
  color: #e5e7eb;
  max-width: none !important;
}
.prose-invert h1 {
  @apply text-3xl font-bold my-6 text-white border-b border-blue-500 pb-2;
}
.prose-invert h2 {
  @apply text-2xl font-semibold my-5 text-white border-l-4 border-green-500 pl-3;
}
.prose-invert h3 {
  @apply text-xl font-semibold my-4 text-white;
}
.prose-invert p {
  @apply my-4 text-lg leading-relaxed;
}
.prose-invert strong {
  @apply text-blue-300 font-bold;
}
.prose-invert em {
  @apply text-yellow-300 italic;
}
.prose-invert code {
  @apply bg-gray-700 px-2 py-1 rounded font-mono text-sm;
}
.prose-invert ul,
.prose-invert ol {
  @apply my-4 pl-6;
}
.prose-invert li {
  @apply my-2 text-lg;
}
.scroll-indicator {
  position: sticky;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transition: width 0.3s ease;
}
#videoPreview {
  aspect-ratio: 16/9;
  max-height: 300px;
  width: 100%;
}
.status-recording {
  @apply bg-red-600;
}
.status-ready {
  @apply bg-green-600;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.recording .bg-red-600 {
  animation: pulse 2s infinite;
}
.listening {
  @apply bg-yellow-600 animate-pulse;
}
.video-controls {
  @apply space-y-3 mb-4;
}
.transcript-controls {
  @apply flex space-x-2 mt-2;
}

/* ✅ FIXED MONACO POPUP */
#monacoPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: #1e1e1e;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  z-index: 1000;
  display: none;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}
#popupHeader {
  height: 32px;
  background: #252526;
  border-bottom: 1px solid #3b82f6;
  cursor: move;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-radius: 6px 6px 0 0;
  font-size: 13px;
}
#popupTitle {
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}
#closePopup {
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 3px;
  user-select: none;
}
#closePopup:hover {
  background: #3b82f6;
}
#monacoPopupContent {
  height: calc(100% - 32px); /* ✅ FIXED: Explicit height */
  position: relative;
}
#monacoContainer {
  width: 100%;
  height: 100%; /* ✅ FIXED: 100% height */
}
.monaco-editor {
  height: 100% !important;
  width: 100% !important;
  border-radius: 0 0 6px 6px;
}
/* Overlay backdrop */
#popupBackdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}
