/* 2D Slider Styles */

.slider-2d-section {
  margin: 0 0 20px 0;
}

.slider-2d-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.slider-2d-item {
  flex: 1;
  min-width: 450px;
  max-width: 600px;
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.slider-2d-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  margin-bottom: 25px;
}

.slider-2d-image-frame {
  width: 100%;
  height: 100%;
  background-size: 700% 700%;
  background-repeat: no-repeat;
  background-position: 0% 0%;
}

.slider-2d-prompt {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Google Sans', sans-serif;
}

.slider-2d-controls {
  padding: 0 5px;
}

.slider-2d-control-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.slider-2d-control-label {
  font-size: 0.85rem;
  color: #6c757d;
  min-width: 80px;
  width: 80px;
  text-align: right;
  font-weight: 500;
}

.slider-2d-input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(to right, #e9ecef 0%, #007bff 0%);
  outline: none;
  transition: background 0.3s ease;
}

.slider-2d-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
  transition: all 0.2s ease;
}

.slider-2d-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 12px rgba(0, 123, 255, 0.6);
}

.slider-2d-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
  transition: all 0.2s ease;
}

.slider-2d-input::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 12px rgba(0, 123, 255, 0.6);
}

.slider-2d-step-button {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 28px;
  height: 28px;
  text-align: center;
  padding: 0;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-2d-step-button.increment {
  color: #28a745;
  background: #e6f7ea;
}

.slider-2d-step-button.increment:hover:not(:disabled) {
  background: #28a745;
  color: white;
  transform: scale(1.1);
}

.slider-2d-step-button.decrement {
  color: #dc3545;
  background: #fde8ea;
}

.slider-2d-step-button.decrement:hover:not(:disabled) {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}

.slider-2d-step-button:disabled {
  cursor: not-allowed;
  filter: grayscale(100%);
  opacity: 0.4;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .slider-2d-container {
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .slider-2d-item {
    min-width: 100%;
  }
}

@media (max-width: 576px) {
  .slider-2d-item {
    padding: 20px;
  }
  
  .slider-2d-prompt {
    font-size: 1rem;
  }
  
  .slider-2d-control-label {
    font-size: 0.85rem;
  }
}
