/* Style constraints: #F7FBFF, #0077B6, #FF8A5B, #03045E */

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #F7FBFF;
  color: #03045E;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-up {
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Range Slider Styling with strictly allowed colors */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: #e1effa;
  border-radius: 9999px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0077B6;
  border: 3px solid #F7FBFF;
  box-shadow: 0 2px 6px rgba(3, 4, 94, 0.3);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.1s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #03045E;
}

input[type=range]::-webkit-slider-thumb:active {
  transform: scale(1.25);
  background: #FF8A5B;
}

input[type=range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0077B6;
  border: 3px solid #F7FBFF;
  box-shadow: 0 2px 6px rgba(3, 4, 94, 0.3);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.1s ease;
}

/* Tenure Active State Class */
.tenure-active {
  background-color: #0077B6 !important;
  color: #ffffff !important;
  border-color: #03045E !important;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.25);
}

.tenure-inactive {
  background-color: #F7FBFF;
  color: #03045E;
  border-color: rgba(0, 119, 182, 0.3);
}

.tenure-inactive:hover {
  border-color: #0077B6;
}

/* Prevent accidental text selections on UI controls */
button, input[type=range], .tenure-toggle {
  user-select: none;
  -webkit-user-select: none;
}