/*
 * Surface-specific browser primitives.
 *
 * Most Stage Mate styling lives in Reagent components. Keep this file for
 * browser features that cannot be represented with inline/component classes,
 * such as WebKit scrollbar pseudo-elements.
 */

.stagemate-scrollbar,
.stagemate-edit-scrollbar,
.stagemate-dark-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--stagemate-scrollbar-thumb) var(--stagemate-scrollbar-track);
}

.stagemate-edit-scrollbar,
.stagemate-scrollbar-light {
  --stagemate-scrollbar-track: #f8fafc;
  --stagemate-scrollbar-thumb: #cbd5e1;
  --stagemate-scrollbar-thumb-hover: #94a3b8;
}

.stagemate-dark-scrollbar,
.stagemate-scrollbar-dark {
  --stagemate-scrollbar-track: #0f172a;
  --stagemate-scrollbar-thumb: #334155;
  --stagemate-scrollbar-thumb-hover: #475569;
}

.stagemate-scrollbar::-webkit-scrollbar,
.stagemate-edit-scrollbar::-webkit-scrollbar,
.stagemate-dark-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 0;
  background: var(--stagemate-scrollbar-track);
}

.stagemate-scrollbar::-webkit-scrollbar-track,
.stagemate-edit-scrollbar::-webkit-scrollbar-track,
.stagemate-dark-scrollbar::-webkit-scrollbar-track {
  background: var(--stagemate-scrollbar-track);
}

.stagemate-scrollbar::-webkit-scrollbar-thumb,
.stagemate-edit-scrollbar::-webkit-scrollbar-thumb,
.stagemate-dark-scrollbar::-webkit-scrollbar-thumb {
  background: var(--stagemate-scrollbar-thumb);
  border: 2px solid var(--stagemate-scrollbar-track);
  border-radius: 9999px;
}

.stagemate-scrollbar::-webkit-scrollbar-thumb:hover,
.stagemate-edit-scrollbar::-webkit-scrollbar-thumb:hover,
.stagemate-dark-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--stagemate-scrollbar-thumb-hover);
}
