/*
 * 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.
 */

/* ===== Custom Scrollbar ===== */
* {
  scrollbar-width: thin;
  scrollbar-color: oklch(0.65 0.15 160) transparent;
}
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: oklch(0.65 0.15 160);
  border-radius: 9999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: oklch(0.55 0.15 160);
}

/* ===== Stops (paradas intermediárias) ===== */

/* Numeração automática via CSS counter (substitui updateLabels() em JS) */
[data-stops-target="container"] {
  counter-reset: stop-counter;
}
[data-stops-row] {
  counter-increment: stop-counter;
}
[data-stops-row] .label-text::before {
  content: "Parada " counter(stop-counter);
}

/* Oculta botão de adicionar quando o máximo (6) é atingido (substitui lógica JS) */
[data-stops-target="container"]:has([data-stops-row]:nth-child(6)) ~ [data-stops-target="addBtn"] {
  display: none;
}
