/*
 * 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 styles for the application */
html {
  font-family: 'Gabarito', sans-serif !important;
}

.mouse-part {
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.mouse-part--active {
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.9);
  opacity: 1 !important;
  transform: translateY(1px);
}

.mouse-part--tested:not(.mouse-part--active) {
  opacity: 0.65 !important;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.4);
}

.mouse-part.scroll-arrow {
  color: #e5e7eb;
}

.mouse-part.scroll-arrow.mouse-part--active {
  color: #38bdf8;
}

.mouse-part.scroll-arrow.mouse-part--tested:not(.mouse-part--active) {
  color: #bae6fd;
}

.dpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.dpi-card__label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}

.dpi-card__value {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
}

.dpi-card__value--split {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.dpi-input {
  width: 100%;
  border: 1px solid #cbd5f5;
  border-radius: 0.75rem;
  padding: 0.35rem 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  transition: border 120ms ease, box-shadow 120ms ease;
}

.dpi-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.dpi-input--select {
  padding-right: 2rem;
  min-width: 7rem;
  flex: 1 1 auto;
}

.dpi-input--compact {
  width: 6rem;
  flex: 0 0 auto;
}

.dpi-metric {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: #0f172a;
  color: #f1f5f9;
}

.dpi-metric__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.7);
}

.dpi-metric__value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.dpi-track {
  position: relative;
  height: 120px;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 25px 50px rgba(15, 23, 42, 0.08);
  overflow: visible;
  --track-start: 12%;
  --track-end: 88%;
  --crosshair-position: var(--track-start);
  --target-position: var(--track-end);
}

.dpi-track[data-axis="x-"] {
  --crosshair-position: var(--track-end);
  --target-position: var(--track-start);
}

.dpi-track__rail {
  position: absolute;
  top: 50%;
  left: var(--track-start);
  right: calc(100% - var(--track-end));
  height: 4px;
  background: #cbd5f5;
  transform: translateY(-50%);
}

.dpi-track__progress {
  position: absolute;
  top: 50%;
  left: var(--track-start);
  height: 4px;
  transform: translateY(-50%);
  width: 0;
  background: #38bdf8;
  transition: width 80ms linear;
  transform-origin: left center;
}

.dpi-track[data-axis="x-"] .dpi-track__progress {
  left: auto;
  right: calc(100% - var(--track-end));
  transform-origin: right center;
}

.dpi-track__target {
  position: absolute;
  top: 50%;
  left: var(--target-position);
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 2;
}

.dpi-target-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
  background: #ffffff;
}

.dpi-target-circle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.dpi-target-label {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #22c55e;
  font-weight: 600;
}

.dpi-crosshair {
  position: absolute;
  top: 50%;
  left: var(--crosshair-position);
  transform: translate(-50%, -50%);
  border: none;
  background: none;
  cursor: grab;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  z-index: 2;
}

.dpi-crosshair__hint {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dpi-crosshair__dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #ffffff;
}

.dpi-crosshair__dot::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ef4444;
}

.dpi-crosshair--active {
  cursor: grabbing;
}

.dpi-track--recording .dpi-track__rail {
  background: #fca5a5;
}

.dpi-panel {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.75rem;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.dpi-panel__title {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.dpi-panel__subtitle {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #38bdf8;
}

.mouse-visual {
  width: 260px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  background: transparent;
}


.mouse-shell {
  position: relative;
  width: 260px;
  margin: 0 auto;
}

.mouse-top {
  position: relative;
  display: flex;
  height: 170px;
}

.mouse-button {
  flex: 1;
  background: #7dd3fc;
  border: 2px solid #e0f2fe;
}

.mouse-button--left {
  border-top-left-radius: 130px;
  border-bottom-left-radius: 0;
  border-right-color: rgba(255, 255, 255, 0.6);
}

.mouse-button--right {
  border-top-right-radius: 130px;
  border-bottom-right-radius: 0;
  border-left-color: rgba(255, 255, 255, 0.6);
}

.mouse-scroll {
  pointer-events: none;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.mouse-wheel {
  height: 82px;
  width: 26px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: repeating-linear-gradient(0deg, #1f2937, #1f2937 2px, #f8fafc 2px, #f8fafc 4px);
}

.mouse-body {
  height: 260px;
  width: 260px;
  margin: -12px auto 0;
  border-bottom-left-radius: 220px;
  border-bottom-right-radius: 220px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  box-shadow: inset 0 -12px 35px rgba(15, 23, 42, 0.08);
}

.mouse-side {
  position: absolute;
  left: -18px;
  top: 150px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.mouse-side-button {
  width: 18px;
  height: 46px;
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
  border: 2px solid #1f2937;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset -3px 0 6px rgba(255, 255, 255, 0.08);
}

.keycap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  box-shadow: inset 0 -2px 0 rgba(15, 23, 42, 0.07);
  transition: background 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.keycap--active {
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35);
  transform: translateY(1px);
}

.keycap--tested:not(.keycap--active) {
  background: #dbeafe;
  border-color: #bfdbfe;
  box-shadow: inset 0 -2px 0 rgba(30, 64, 175, 0.15);
}

.keycap-label {
  font-size: 0.95rem;
}

.keycap-code {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(15, 23, 42, 0.5);
}

.keycap--wide {
  min-width: 4rem;
}

.keycap--xl {
  min-width: 5.5rem;
}

.keycap--space {
  flex: 1;
  min-width: 12rem;
}

.keycap--arrow {
  align-items: center;
  text-align: center;
  min-width: 3.25rem;
}

.multi-range-slider {
  position: relative;
}

.multi-range-slider input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  margin: 0;
  width: 100%;
  height: 8px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.multi-range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
  border: none;
}

.multi-range-slider input[type="range"]::-moz-range-track {
  height: 8px;
  background: transparent;
  border: none;
}

.multi-range-slider input[type="range"]::-ms-track {
  height: 8px;
  background: transparent;
  border: none;
  color: transparent;
}

.multi-range-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 9999px;
  background: #1d4ed8;
  border: 2px solid #ffffff;

}

.multi-range-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  height: 16px;
  width: 16px;
  border-radius: 9999px;
  background: #1d4ed8;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #1d4ed8;
}

.multi-range-slider input[type="range"]::-ms-thumb {
  pointer-events: auto;
  height: 16px;
  width: 16px;
  border-radius: 9999px;
  background: #1d4ed8;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #1d4ed8;
}