/* KurvaEkonomi Lab - Global Custom Styles (Preserving Nordic Neon Aesthetic) */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #070a12;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

.bg-grid-pattern {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.custom-range { accent-color: #10b981; }
.custom-range-emerald { accent-color: #10b981; }
.custom-range-cyan { accent-color: #06b6d4; }
.custom-range-amber { accent-color: #f59e0b; }
.custom-range-violet { accent-color: #8b5cf6; }
.custom-range-rose { accent-color: #f43f5e; }
.custom-range-sky { accent-color: #0ea5e9; }

.plot-container .modebar {
  opacity: 0.25;
  transition: opacity 0.2s ease-in-out;
}

.plot-container:hover .modebar {
  opacity: 1;
}

/* Smooth transition when swapping workspace views inside single screen */
#workspaceViewport.view-loading {
  opacity: 0.55;
  transition: opacity 0.15s ease-out;
}

.no-scrollbar::-webkit-scrollbar,
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

.no-scrollbar,
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* GeoGebra Cartesian & Paired Numeric Input Controls */
input[type="number"].ggb-num-input,
input[type="number"].ggb-axis-input {
  color-scheme: dark;
  font-variant-numeric: tabular-nums;
}

input[type="number"].ggb-num-input::-webkit-inner-spin-button,
input[type="number"].ggb-num-input::-webkit-outer-spin-button {
  opacity: 0.65;
  cursor: pointer;
}

input[type="number"].ggb-axis-input::-webkit-inner-spin-button,
input[type="number"].ggb-axis-input::-webkit-outer-spin-button {
  opacity: 0.5;
}

.ggb-btn-active {
  background-color: rgba(6, 182, 212, 0.2);
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.55);
}
