.spinner {
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0;
  overflow: hidden;
}

.spinner.active {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast-notification {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 24px;
  background-color: rgba(34, 197, 94, 0.95);
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-size: 16px;
  font-weight: 500;
  z-index: 2000;
  max-width: 90%;
  width: auto;
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast-notification.show {
  bottom: 32px;
}

.toast-notification.toast-success {
  background-color: rgba(34, 197, 94, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.toast-notification.toast-error {
  background-color: rgba(239, 68, 68, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.5);
}

@keyframes slideUp {
  from {
    bottom: -100px;
    opacity: 0;
  }
  to {
    bottom: 32px;
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    bottom: 32px;
    opacity: 1;
  }
  to {
    bottom: -100px;
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .toast-notification {
    bottom: -100px;
    width: calc(100% - 32px);
    max-width: none;
  }

  .toast-notification.show {
    bottom: 16px;
  }
}
