/* LectureScribe Styles */

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Mic active pulse */
.mic-active {
  animation: mic-pulse 1.5s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Live indicator pulse */
.live-pulse {
  animation: live-dot 1.2s ease-in-out infinite;
}
@keyframes live-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* New info slide in */
.new-info-enter {
  animation: slide-in 0.3s ease-out;
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Transcript item fade */
.transcript-item {
  animation: fade-in 0.2s ease-out;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Canvas container sizing */
#canvasContainer {
  min-height: 300px;
}

/* PDF canvas crisp rendering */
#pdfCanvas {
  image-rendering: -webkit-optimize-contrast;
}

/* Keyboard shortcut hints */
kbd {
  font-size: 0.65rem;
  line-height: 1;
}

/* Focus styles */
button:focus-visible, label:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  main {
    flex-direction: column !important;
  }
  aside {
    width: 100% !important;
    max-height: 40vh;
    border-left: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  #canvasContainer {
    min-height: 200px;
  }
}

/* Drag-over styling for PDF drop */
.drag-over {
  border: 2px dashed #6366f1 !important;
  background: rgba(99, 102, 241, 0.05) !important;
}

/* Slide text preview */
#slideTextPreview {
  word-break: break-word;
}

/* New info item hover */
.new-info-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Export button disabled state */
#exportBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
