@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
}

/* Folder list compact view */
#folder-list[data-view="list"] .folder-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  gap: 0.75rem;
  box-shadow: none;
}

#folder-list[data-view="list"] .folder-card h3 {
  font-size: 0.95rem;
}

#folder-list[data-view="list"] .folder-title {
  flex: 1;
  min-width: 0;
}

#folder-list[data-view="list"] .folder-status {
  white-space: nowrap;
  font-size: 0.7rem;
}

#folder-list[data-view="list"] .folder-card button {
  margin-top: 0;
  width: auto;
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
}

/* Sidebar */
aside {
  flex-shrink: 0;
}

/* Video list in sidebar */
#video-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  min-height: 0;
}

#video-list::-webkit-scrollbar {
  width: 6px;
}

#video-list::-webkit-scrollbar-track {
  background: transparent;
}

#video-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

#video-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Video list items */
.video-card-item {
  border-radius: 0;
}

.video-card-item:hover {
  transform: translateX(1px);
}

/* Language buttons */
button[data-active="true"] {
  border-color: rgb(52, 211, 153) !important;
  background-color: rgba(16, 185, 129, 0.2) !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3), inset 0 0 0 1px rgba(16, 185, 129, 0.2) !important;
}

button[data-active="true"] img {
  opacity: 1;
  filter: brightness(1.1);
}

button:not([data-active="true"]) img {
  opacity: 0.6;
  filter: brightness(0.8);
}

/* Video player area */
#video-player-area {
  min-width: 0;
}

#selected-video {
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Timeline */
#timeline-container {
  flex-shrink: 0;
}

#timeline-track {
  border-radius: 0;
}

#timeline-track:hover {
  transform: scaleY(1.1);
}

#timeline-transcript {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 45%;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

#timeline-transcript::-webkit-scrollbar {
  display: none;
}

.karaoke-word {
  margin: 0;
  padding: 4px 10px;
  white-space: nowrap;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
}

.karaoke-word:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.karaoke-word--pending {
  color: rgba(148, 163, 184, 0.4);
}

.karaoke-word--spoken {
  color: rgba(52, 211, 153, 0.6);
}

.karaoke-word--active {
  color: #ffffff;
  background-color: rgba(52, 211, 153, 0.25);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.15);
  transform: scale(1.1);
  font-weight: 700;
}

/* Logs panel */
#logs-panel {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

#logs-panel pre {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

#logs-panel pre::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

#logs-panel pre::-webkit-scrollbar-track {
  background: transparent;
}

#logs-panel pre::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

#logs-panel pre::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Instance logs container */
#instance-logs {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

#instance-logs::-webkit-scrollbar {
  width: 6px;
}

#instance-logs::-webkit-scrollbar-track {
  background: transparent;
}

#instance-logs::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

#instance-logs::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
