/* Global scroll — NewTech brand */
:root {
  --scroll-thumb: #e31c1c;
  --scroll-thumb-hover: #c0160f;
  --scroll-track: #ebebeb;
  --scroll-track-dark: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--scroll-thumb) 0%, var(--scroll-thumb-hover) 100%);
  border-radius: 10px;
  border: 2px solid var(--scroll-track);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
}

*::-webkit-scrollbar-corner {
  background: var(--scroll-track);
}

/* Dark horizontal areas (planning grid) */
.schedule-scroll {
  scrollbar-width: thin;
  scrollbar-color: #ff8f1f var(--scroll-track-dark);
}

.schedule-scroll::-webkit-scrollbar-track {
  background: var(--scroll-track-dark);
  border-radius: 4px;
}

.schedule-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff6a00, #ff8f1f);
  border: 2px solid #1a1a1a;
  border-radius: 8px;
}

.schedule-scroll::-webkit-scrollbar-thumb:hover {
  background: #ff8f1f;
}

/* Admin dark sidebar */
.admin-sidebar,
.sidebar-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.admin-sidebar::-webkit-scrollbar,
.sidebar-scroll::-webkit-scrollbar {
  width: 5px;
}

.admin-sidebar::-webkit-scrollbar-track,
.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb,
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(227, 28, 28, 0.6);
}

.admin-main {
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

/* Back to top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  color: #e31c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(227, 28, 28, 0.12);
}

.scroll-top.show:hover {
  transform: translateY(0) scale(1.05);
}

.scroll-top .progress-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.scroll-top .scroll-track-path {
  fill: none;
  stroke: #e31c1c;
  stroke-width: 2;
  stroke-linecap: butt;
  stroke-linejoin: round;
}

.scroll-top .scroll-progress-path {
  fill: none;
  stroke: #e31c1c;
  stroke-width: 5;
  stroke-linecap: butt;
  stroke-linejoin: round;
  transition: stroke-dashoffset 50ms linear;
}

.scroll-top-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #e31c1c;
}

.scroll-top-inner .scroll-arrow {
  width: 22px;
  height: 22px;
}

@media (max-width: 640px) {
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .scroll-top-inner .scroll-arrow {
    width: 18px;
    height: 18px;
  }
}
