html {
  scroll-padding: 7rem;
}
.institute_slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0px;
  transition: all 1s;
}
.institute_slide:hover {
  scale: 1.1;
}
.institute_slide img {
  height: 100px;
}
/* Floating Label Styles */
.floating-label-container {
  position: relative;
}

.floating-label {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 0 4px;
  color: #999;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1;
}
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* 50% opacity */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
#page-loader svg {
  height: 75px;
  width: 75px;
}
/* Dark mode background for floating labels */
.dark .floating-label {
  background: var(--bg-dark, #1a1a1a);
}

/* When input is focused or has value */
.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label,
.floating-input[type="date"] + .floating-label,
.floating-input[type="file"] + .floating-label,
.floating-input:valid + .floating-label {
  top: -2px;
  left: 22px;
  font-size: 12px;
  color: var(--primaryColor, #007bff);
  transform: translateY(0);
}

/* For select elements with selected values */
.floating-input:not([value=""]) + .floating-label,
select.floating-input:not([value=""]) + .floating-label {
  top: -2px;
  left: 22px;
  font-size: 12px;
  color: var(--primaryColor, #007bff);
  transform: translateY(0);
}

/* Focus state for border color */
.floating-input:focus {
  border-color: var(--primaryColor, #007bff);
}

/* Required field asterisk styling */
.floating-label:after {
  content: "";
}

.floating-label:has-text("*"):after {
  content: "";
}

/* Adjust icon positioning when label is floating */
.floating-label-container .input-icon {
  transition: all 0.3s ease;
}

/* For file inputs, always show floating label */
input[type="file"].floating-input + .floating-label {
  top: -2px;
  left: 22px;
  font-size: 12px;
  color: var(--primaryColor, #007bff);
  transform: translateY(0);
}

/* For date inputs that have a value */
input[type="date"].floating-input:not([value=""]) + .floating-label {
  top: -2px;
  left: 22px;
  font-size: 12px;
  color: var(--primaryColor, #007bff);
  transform: translateY(0);
}

/* Floating Label Styles */
.floating-label-container {
  position: relative;
}

.floating-input {
  /* padding-top: 1.5rem; */
}

.floating-label {
  position: absolute;
  top: 50%;
  left: 1.625rem; /* 26px */
  transform: translateY(-50%);
  transition: all 0.2s ease-in-out;
  pointer-events: none;
  color: #6b7280; /* gray-500 */
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
  top: 1rem;
  font-size: 0.75rem;
  color: #3b82f6; /* blue-500 */
}

/* Custom styles for toast notifications */
#toast-container {
  position: fixed;
  text-align: center;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.toast {
  background-color: #ef4444; /* red-500 */
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(20px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Custom styles for OTP Modal */
#otp-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

#otp-modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

#otp-modal {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.otp-input-fields {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 10px;
}

.otp-input {
  width: 45px;
  height: 45px;
  text-align: center;
  font-size: 1.25rem;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.375rem;
}

.otp-input:focus {
  outline: none;
  border-color: #3b82f6; /* blue-500 */
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}
