/* Overlay */
#loaderOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 61, 96, 0.15);
  backdrop-filter: blur(3px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#loaderOverlay.active {
  display: flex;
}

/* Center card */
.loader-card {
  background: white;
  border-radius: 14px;
  padding: 28px 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: loaderFadeIn 0.2s ease;
}

/* Spinner */
.loader-spinner {
  width: 3rem;
  height: 3rem;
  color: #143D60;
}

.email-valid {
  background: #e6f7ef;
  border: 1px solid #1f9d55;
  color: #1f9d55;
}

.email-error {
  background: #ffe9e9;
  border: 1px solid #b00020;
  color: #b00020;
}

/* Text */
.loader-text {
  margin-top: 12px;
  font-weight: 600;
  color: #143D60;
  font-size: 15px;
  letter-spacing: 0.2px;
}
 #newUserEmails::placeholder {
    color: #adb5bd;
    opacity: 1;
  }
/* Animation */
@keyframes loaderFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

  /* Container already uses flex-wrap, this improves spacing */
#emailPreview {
  gap: 8px;
}

/* Email pill */
.email-pill {
  display: inline-flex;
  align-items: center;
  background-color: #e6f4f4;
  color: #143D60;
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1;
  border: 1px solid rgba(0, 128, 128, 0.2);
  transition: background-color 0.15s ease,
              transform 0.1s ease;
  max-width: 100%;
}

/* Prevent long emails from breaking layout */
.email-pill {
  word-break: break-all;
}

/* Hover effect */
.email-pill:hover {
  background-color: #d4eeee;
  transform: translateY(-1px);
}


.email-pill .remove {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
  opacity: 0.6;
  font-size: 16px;
  line-height: 1;
  transition: opacity 0.15s ease,
              color 0.15s ease;
}

/* Remove hover */
.email-pill .remove:hover {
  opacity: 1;
  color: #b00020;
}

/* Mobile improvement */
@media (max-width: 576px) {
  .email-pill {
    font-size: 13px;
    padding: 5px 10px;
  }
}
