/* Loading Spinner */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.hidden {
  display: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--website-white);
  border-top: 4px solid var(--website-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  color: var(--website-white);
  margin-top: 20px;
  font-size: 16px;
  line-height: 24px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 40px;
  right: calc(50% - 250px);
  z-index: 1050;
  width: 500px;
  word-wrap: break-word;
}

.toast {
  background: var(--website-white);
  border: 1px solid var(--website-white);
  border-radius: 8px;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 100%;
}

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

.toast-content {
  display: flex;
  align-items: center;
  padding: 20px;
}

.toast-success {
  border-left: 4px solid green;
}

.toast-error {
  border-left: 4px solid red;
}

.toast-warning {
  border-left: 4px solid orange;
}

.toast-info {
  border-left: 4px solid yellow;
}

.toast-content i {
  margin-right: 20px;
  font-size: 16px;
}

.toast-success i {
  color: green;
}

.toast-error i {
  color: red;
}

.toast-warning i {
  color: orange;
}

.toast-info i {
  color: yellow;
}

.toast-message {
  flex: 1;
  margin-right: 20px;
}

.toast-close {
  background: none;
  border: none;
  color: var(--website-black);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* Loading Components */
.loading-component {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.loading-component .spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.loading-text {
  margin-top: 16px;
  color: var(--website-white);
  font-size: 16px;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

.fade-out {
  animation: fadeOut 0.3s ease-out;
}

@media (max-width: 767px) {
  /* Toast Notifications */
  .toast-container {
    right: calc(50% - 150px);
    width: 300px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(10px);
  }
}