/* Numeric Field Popup Styling */

.custom-popover--numeric {
  min-width: 300px;
  max-width: 360px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 1rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e3e3e3;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-popover--numeric:hover {
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.18), 0 0 1px rgba(0, 0, 0, 0.08);
}

.numeric-popup-header {
  position: relative;
}

.numeric-popup-header h6 {
  color: #2c3e50;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.numeric-popup-value-display {
  margin-top: 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.numeric-popup-current-value {
  font-size: 2.5rem !important;
  font-weight: 700;
  color: var(--traq-color-primary);
  line-height: 1;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px var(--traq-primary-alpha-10);
}

.numeric-popup-current-value:hover {
  transform: scale(1.05);
}

.numeric-popup-slider-container {
  padding: 1rem 0.5rem;
  background: var(--traq-white-alpha-80);
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
}

/* Animation for value change */
@keyframes valueChange {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.numeric-popup-current-value.changing {
  animation: valueChange 0.3s ease;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .custom-popover--numeric {
    min-width: 280px;
    max-width: 320px;
    padding: 1.25rem;
  }

  .numeric-popup-current-value {
    font-size: 2rem !important;
  }

  /* Larger touch target for mobile - override theme */
  .custom-popover--numeric .form-range::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }

  .custom-popover--numeric .form-range::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }
}

/* Dark mode support (if needed later) */
@media (prefers-color-scheme: dark) {
  .custom-popover--numeric {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: #4a5568;
  }

  .numeric-popup-header h6 {
    color: #e2e8f0;
  }

  .numeric-popup-current-value {
    color: #8b9bff;
    text-shadow: 0 2px 4px rgba(139, 155, 255, 0.2);
  }

  .numeric-popup-slider-container {
    background: rgba(30, 41, 59, 0.8);
  }
}
