/*
 * 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 Slider Thumb for Webkit Browsers (Chrome, Safari, Edge) */
  #progress-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px; /* Thumb width */
    height: 20px; /* Thumb height */
    background-color: #F6afa0; /* Custom thumb color (pink example) */
    border-radius: 50%; /* Makes it circular */
    border: 2px solid #BEFBFF; /* Optional border */
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  }

  /* Custom Slider Thumb for Firefox */
  #progress-slider::-moz-range-thumb {
    width: 20px; /* Thumb width */
    height: 20px; /* Thumb height */
    background-color: #f6afa0; /* Custom thumb color (pink example) */
    border-radius: 50%; /* Circular */
    border: 2px solid #448087; /* Optional border */
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  }

  /* Optional: Change the Slider Track */
  #progress-slider {
    appearance: none;
    background-color: #0f766e; /* Custom track color */
    height: 5px; /* Track thickness */
    border-radius: 10px; /* Rounded edges */
  }

/* Custom Range Slider Styling for Risk Calculator */
.risk-slider-overlay {
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.risk-slider-overlay::-webkit-slider-track {
  background: transparent;
  height: 40px;
}

.risk-slider-overlay::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: 4px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.risk-slider-overlay::-webkit-slider-thumb:hover {
  background: #2563eb;
  transform: scale(1.05);
}

.risk-slider-overlay::-moz-range-track {
  background: transparent;
  height: 40px;
  border: none;
}

.risk-slider-overlay::-moz-range-thumb {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: 4px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.risk-slider-overlay::-moz-range-thumb:hover {
  background: #2563eb;
  transform: scale(1.05);
}

.risk-slider-overlay:focus {
  outline: none;
}

.risk-slider-overlay:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.risk-slider-overlay:focus::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Legacy slider styles */
.slider {
  -webkit-appearance: none;
  background: transparent;
}

.slider::-webkit-slider-track {
  background: #e5e7eb;
  height: 12px;
  border-radius: 6px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  background: #1d4ed8;
  transform: scale(1.1);
}

.slider::-moz-range-track {
  background: #e5e7eb;
  height: 12px;
  border-radius: 6px;
  border: none;
}

.slider::-moz-range-thumb {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
  background: #1d4ed8;
  transform: scale(1.1);
}

.slider:focus {
  outline: none;
}

.slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.slider:focus::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Smooth transitions for value changes */
#gain-dollars, #loss-dollars, #target-return {
  transition: all 0.3s ease;
}