#notification {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.notification-container {
  transition: transform 0.3s ease;
  padding: 1.5rem;
  max-width: 320px;
  word-break: normal;
  position: relative;
  overflow: hidden;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-progress {
  position: static;
  pointer-events: none;
}

.notification-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: currentColor;
  transform-origin: right center;
  animation: notification-bar-progress 5s linear forwards;
}

.notification-progress svg {
  display: none;
}

.notification-progress.paused::before {
  animation-play-state: paused;
}

.notification-progress button {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  pointer-events: auto;

  border: none;
  background: transparent;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@keyframes notification-bar-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.notification-icon {
  font-size: 16px;
  line-height: 1;
}

.notification-status {
  font-weight: 600;
}

.notification-message {
  flex: 1;
}

.notification-info {
  border: 1px solid var(--color-info);
  border-radius: var(--card-border-radius);
  color: var(--color-info);
  background: var(--color-background-tertiary);
}

.notification-error {
  border: 1px solid var(--color-error);
  border-radius: var(--card-border-radius);
  color: var(--color-error);
  background: var(--color-background-tertiary);
}

.notification-success {
  border: 1px solid var(--color-success);
  border-radius: var(--card-border-radius);
  color: var(--color-success);
  background: var(--color-background-tertiary);
}

.notification-info h1,
.notification-info h2,
.notification-info h3 {
  color: var(--color-success) !important;
}

.notification-error h1,
.notification-error h2,
.notification-error h3 {
  color: var(--color-error) !important;
}

.notification-success h1,
.notification-success h2,
.notification-success h3 {
  color: var(--color-success) !important;
}

.notification span {
  color: var(--text-color);
}

@keyframes notification-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
