@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

* { font-family: 'Inter', system-ui, sans-serif; }
code, .font-mono, input[type="number"] { font-family: 'JetBrains Mono', monospace; }

html, body { height: 100%; }

/* ---------- custom scrollbar, mockup-style ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.14) transparent; }

/* ---------- brand glow + pulse ---------- */
.studio-glow { box-shadow: 0 0 18px -2px rgba(217,70,239,0.55); }
@keyframes pulseSlow { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.animate-pulse-slow { animation: pulseSlow 2.4s ease-in-out infinite; }

/* ---------- sidebar nav links ---------- */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a1a1aa;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 0.15s, color 0.15s;
}
.nav-link:hover { background: rgba(255,255,255,0.055); color: #f4f4f5; }
.nav-link.active {
  background: linear-gradient(90deg, rgba(217,70,239,0.18), rgba(99,102,241,0.14));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(217,70,239,0.3);
}

/* ---------- collapsible sidebar: icon-only rail ---------- */
#sidebar.sidebar-collapsed .sidebar-label { display: none; }
#sidebar.sidebar-collapsed .nav-link { justify-content: center; padding-left: 0; padding-right: 0; }
#sidebar.sidebar-collapsed #sidebarBrand { justify-content: center; padding-left: 0; padding-right: 0; }
#sidebar.sidebar-collapsed #sidebarCollapseBtn { justify-content: center; }

/* ---------- small custom controls not expressed as pure Tailwind utilities ---------- */
.icon-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #d4d4d8;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.icon-btn-sm:hover { background: rgba(255,255,255,0.1); color: #fff; }

.trim-time-input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e4e4e7;
  font-size: 11px;
  border-radius: 6px;
  padding: 4px 6px;
}
.trim-time-input:focus { outline: none; border-color: rgba(217,70,239,0.5); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: #18181f;
  color: #f4f4f5;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ---------- misc ---------- */
input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.12); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: currentColor;
  border: 2px solid #0b0b0f;
  cursor: pointer;
}
input[type="color"] { cursor: pointer; padding: 2px; }
