/* Weight Editor Modal Styles */

.weight-editor-modal {
  max-width: 700px;
}

.modal-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.weight-editor-body {
  max-height: 60vh;
  overflow-y: auto;
}

/* Weight Category */
.weight-category {
  margin-bottom: 1.5rem;
}

.weight-category:last-child {
  margin-bottom: 0;
}

.weight-category-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Weight Slider Row */
.weight-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

.weight-slider-row:last-child {
  margin-bottom: 0;
}

.weight-slider-label {
  font-size: 0.875rem;
  color: var(--text-primary);
  min-width: 200px;
  flex-shrink: 0;
}

.weight-slider-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  max-width: 300px;
}

/* Slider Input */
.weight-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.weight-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid var(--bg-primary);
}

.weight-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.2);
}

.weight-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--bg-primary);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.weight-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.2);
}

.weight-slider::-moz-range-track {
  background: var(--bg-tertiary);
  border-radius: 3px;
  height: 6px;
}

/* Slider Value Display */
.weight-slider-value {
  min-width: 50px;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Weight Editor Footer */
.weight-editor-footer {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Reset Button */
.reset-weights-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.reset-weights-btn:hover:not(.disabled) {
  border-color: rgba(167, 139, 250, 0.4);
  background-color: var(--bg-secondary);
}

.reset-weights-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .weight-slider-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .weight-slider-label {
    min-width: auto;
  }

  .weight-slider-control {
    max-width: none;
  }
}
