/* ===============================
   TOAST NOTIFICATION
================================ */

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;

  min-width: 260px;
  padding: 14px 18px;
  border-radius: 12px;

  font-size: 1.5rem;
  font-weight: 500;

  background: #1f2937;
  color: #ffffff;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: #16a34a;
}

.toast.error {
  background: #dc2626;
}

.toast.info {
  background: #2563eb;
}

/* ===============================
   BUTTON LOADER
================================ */
.mil-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.mil-btn.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  margin-left: 10px;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===============================
   BUTTON LOADER (REUSED)
================================ */
.mil-btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

.mil-btn.loading i {
  display: none; /* hide arrow icon while loading */
}

.mil-btn.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  margin-left: 12px;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
