/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Prevent scroll bounce/overscroll on CodeMirror editor */
.cm-scroller {
  overscroll-behavior: contain;
}

/* Custom scrollbar styling with accent color */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent-500);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-400);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-500) transparent;
}

/* Text selection highlight with accent color */
::selection {
  background: var(--color-accent-500);
  color: white;
}

::-moz-selection {
  background: var(--color-accent-500);
  color: white;
}

/* Turbo progress bar */
.turbo-progress-bar {
  height: 2px;
  background: var(--color-accent-500);
  box-shadow: 0 0 8px var(--color-accent-400), 0 0 4px var(--color-accent-400);
}
