.notification {
  position: fixed;
  display: flex;
  flex-direction: row;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  border-radius: 0.75rem;
  z-index: 50;
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, fadeOut 0.5s ease 5s forwards;
  transform: translateY(-100%);
  opacity: 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  align-items: center;
  max-width: 100%;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-button {
  margin-left: auto;
  border-radius: 0.5rem;
  padding: 0.375rem;
  display: inline-flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.close-button-success {
  background-color: rgba(255, 255, 255, 0.3);
  color: #065f46;
}

.close-button-error {
  background-color: rgba(255, 255, 255, 0.3);
  color: #7f1d1d;
}

.close-button-success:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.close-button-error:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.close-icon {
  height: 1.125rem;
  width: 1.125rem;
}

.notification-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 500;
}

.notification-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-weight: 500;
}

@keyframes slideDown {
  0% {
    transform: translateY(calc(-100% - 1rem));
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

@media only screen and (min-width: 640px) {
  .notification {
    left: auto;
    right: 1rem;
    max-width: 28rem;
  }
}

@media only screen and (min-width: 1024px) {
  .notification {
    top: 1.5rem;
    right: 1.5rem;
    max-width: 32rem;
    padding: 1.25rem 1.5rem;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, fadeOut 0.5s ease 5s forwards;
    transform: translateY(100%);
  }

  @keyframes slideUp {
    0% {
      transform: translateY(100%);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes fadeOut {
    0% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    100% {
      opacity: 0;
      transform: translateY(10px) scale(0.95);
    }
  }
}