/* ==========================================
   TOAST CONTAINER
========================================== */

.toast-container {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================
   TOAST
========================================== */

.toast {
  min-width: 320px;
  max-width: 420px;

  padding: 16px 18px;

  border-radius: 14px;

  color: white;

  display: flex;
  align-items: center;
  gap: 14px;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);

  animation: slideIn 0.35s ease;

  font-family: inherit;
}

.toast .material-icons {
  font-size: 28px;
}

/* ==========================================
   COLORS
========================================== */

.toast.success {
  background: #22c55e;
}

.toast.error {
  background: #ef4444;
}

.toast.warning {
  background: #f59e0b;
}

.toast.info {
  background: #3b82f6;
}

/* ==========================================
   TEXT
========================================== */

.toast h4 {
  margin: 0;
  font-size: 15px;
}

.toast p {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.9;
}

/* ==========================================
   ANIMATION
========================================== */

@keyframes slideIn {
  from {
    transform: translateX(120%);

    opacity: 0;
  }

  to {
    transform: translateX(0);

    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);

    opacity: 1;
  }

  to {
    transform: translateX(120%);

    opacity: 0;
  }
}

.toast.hide {
  animation: slideOut 0.35s forwards;
}

/* ==========================================
   BUTTON LOADER
========================================== */

button.loading {
  opacity: 0.85;
  cursor: not-allowed;
}

.loader-spinner {
  width: 18px;
  height: 18px;

  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top: 3px solid white;

  border-radius: 50%;

  display: inline-block;

  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
