.notification-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.notification-container > * {
  pointer-events: auto;
}

.notification {
  position: relative;
  min-height: 76px;
  padding: 16px 54px 18px 16px;
  border: 1px solid rgba(228, 232, 240, 0.9);
  border-radius: 18px;
  background-color: var(--bg-color, #fff);
  box-shadow:
    0 18px 48px rgba(18, 28, 48, 0.18),
    0 4px 14px rgba(18, 28, 48, 0.08);
  overflow: hidden;
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}

html[data-theme="dark"] .notification {
  border-color: var(--field);
}

.notification--success {
  border-color: rgba(104, 190, 91, 0.2);
}

.notification--error {
  border-color: rgba(239, 68, 68, 0.22);
}

.notification--visible {
  transform: translateX(0);
  opacity: 1;
}

.notification--hiding {
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}

.notification__header {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 42px;
}

.notification__icon {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.notification__icon--success {
  background: linear-gradient(135deg, #72ce5f 0%, #42b956 100%);
}

.notification__icon--error {
  background: linear-gradient(135deg, #ff5a5f 0%, #ef4444 100%);
}

.notification__icon svg {
  width: 20px;
  height: 20px;
}

.notification__content {
  flex: 1;
  min-width: 0;
}

.notification__title {
  padding-right: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--text-dark, #202838);
  overflow-wrap: anywhere;
}

.notification__description {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
  color: var(--gray-dark, #6b7280);
  overflow-wrap: anywhere;
}

.notification__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #f3f5f9;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.notification__close:hover {
  background-color: #e8edf5;
  transform: scale(1.04);
}

html[data-theme="dark"] .notification__close {
  background-color: var(--field);
}

.notification__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  overflow: hidden;
}

.notification__progress-bar {
  height: 100%;
  transition: width 0.1s linear;
  width: 100%;
}

.notification__progress-bar--success {
  background: #42b956;
}

.notification__progress-bar--error {
  background: #ef4444;
}

@media (max-width: 560px) {
  .notification-container {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }
}
