/* Shared scrollbar language for every scrollable surface in Kalimera.
   Keep the track quiet and the thumb readable against both paper and the
   dark frosted-glass panels. Explicitly hidden horizontal rails still win
   through their more-specific component selectors. */
:root {
  --kalimera-scrollbar-size: 10px;
  --kalimera-scrollbar-track: rgba(12, 35, 52, .08);
  --kalimera-scrollbar-thumb: rgba(12, 35, 52, .58);
  --kalimera-scrollbar-thumb-hover: #d9782b;
  --kalimera-scrollbar-thumb-border: rgba(255, 255, 255, .7);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--kalimera-scrollbar-thumb) var(--kalimera-scrollbar-track);
}

*::-webkit-scrollbar {
  width: var(--kalimera-scrollbar-size);
  height: var(--kalimera-scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--kalimera-scrollbar-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  min-height: 32px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--kalimera-scrollbar-thumb);
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px var(--kalimera-scrollbar-thumb-border);
}

*::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:active {
  background: var(--kalimera-scrollbar-thumb-hover);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

/* Bright text surfaces need a slightly stronger rail so the same control
   remains visible over photographs and dark cards. */
.notifications-panel * {
  scrollbar-color: rgba(255, 255, 255, .5) rgba(255, 255, 255, .1);
}

.notifications-panel *::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .1);
}

.notifications-panel *::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  background-clip: padding-box;
}

.notifications-panel *::-webkit-scrollbar-thumb:hover,
.notifications-panel *::-webkit-scrollbar-thumb:active {
  background: #efaa5a;
  background-clip: padding-box;
}

@media (max-width: 700px) {
  :root { --kalimera-scrollbar-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *::-webkit-scrollbar-thumb { transition: none; }
}
