﻿.notify__container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
  max-width: 420px;
  width: 100%;
  pointer-events: none;
}

.notify__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 4px 6px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  max-width: 100%;
  word-wrap: break-word;
  overflow: hidden;
}

.notify__item--visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.notify__item--closing {
  transform: translateY(100px) scale(0.9);
  opacity: 0;
}

.notify__content {
  flex: 1;
  min-width: 0;
}

.notify__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: #1a1a1a;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.notify__message {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  color: #666;
  line-height: 1.4;
  word-break: break-word;
}

.notify__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.notify__close:hover {
  color: white;
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.notify__close:focus {
  outline: 2px solid rgba(0, 123, 255, 0.5);
  outline-offset: 2px;
}

.notify__item--info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-left: 4px solid #3b82f6;
}

.notify__item--info .notify__title {
  color: #1e40af;
}

.notify__item--success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-left: 4px solid #10b981;
}

.notify__item--success .notify__title {
  color: #065f46;
}

.notify__item--warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-left: 4px solid #f59e0b;
}

.notify__item--warning .notify__title {
  color: #92400e;
}

.notify__item--error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-left: 4px solid #ef4444;
}

.notify__item--error .notify__title {
  color: #b91c1c;
}

.notify__item--debug {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-left: 4px solid #a855f7;
}

.notify__item--debug .notify__title {
  color: #7c2d12;
}



.notify__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  border-radius: 0 0 12px 12px;
  transform-origin: left;
  animation: notifyProgress var(--notify-duration, 5s) linear forwards;
}

.notify__item--error::after {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.notify__item--success::after {
  background: linear-gradient(90deg, #10b981, #059669);
}

.notify__item--warning::after {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.notify__item--debug::after {
  background: linear-gradient(90deg, #a855f7, #9333ea);
}

.notify__item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.15),
    0 12px 20px rgba(0, 0, 0, 0.1),
    0 6px 8px rgba(0, 0, 0, 0.08);
}

.notify__item:hover::after {
  animation-play-state: paused;
}



.notify__item:nth-child(n+4) {
  transform: translateY(100px) scale(0.95);
  opacity: 0;
  pointer-events: none;
}

.notify__item:nth-child(3) {
  transform: translateY(8px) scale(0.98);
  opacity: 0.8;
  z-index: -1;
}

.notify__item:nth-child(2) {
  transform: translateY(4px) scale(0.99);
  opacity: 0.9;
  z-index: -2;
}

.notify__item:nth-child(1) {
  z-index: 0;
}

@keyframes notifyProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

@keyframes notifySlideIn {
  from {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes notifySlideOut {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notify__item {
    transition: opacity 0.3s ease;
    transform: none !important;
  }

  .notify__item--visible {
    opacity: 1;
    transform: none !important;
  }

  .notify__item--closing {
    opacity: 0;
    transform: none !important;
  }

  .notify__item:hover {
    transform: none !important;
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.1),
      0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .notify__item::after {
    animation: none;
    width: 0;
  }
}

@media (prefers-color-scheme: dark) {
  .notify__item {
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.4),
      0 8px 16px rgba(0, 0, 0, 0.25),
      0 4px 6px rgba(0, 0, 0, 0.15);
  }

  .notify__title {
    color: #f9fafb;
  }

  .notify__message {
    color: #d1d5db;
  }

  .notify__close {
    background: rgba(0, 0, 0, 0.7);
    color: white;
  }

  .notify__close:hover {
    background: rgba(0, 0, 0, 0.9);
    color: white;
  }

  .notify__item--info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(31, 41, 55, 0.95) 100%);
  }

  .notify__item--success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(31, 41, 55, 0.95) 100%);
  }

  .notify__item--warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(31, 41, 55, 0.95) 100%);
  }

  .notify__item--error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(31, 41, 55, 0.95) 100%);
  }

  .notify__item--debug {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(31, 41, 55, 0.95) 100%);
  }
}

@media (prefers-contrast: high) {
  .notify__item {
    border: 2px solid;
    background: white;
  }

  .notify__item--info {
    border-color: #3b82f6;
  }

  .notify__item--success {
    border-color: #10b981;
  }

  .notify__item--warning {
    border-color: #f59e0b;
  }

  .notify__item--error {
    border-color: #ef4444;
  }

  .notify__item--debug {
    border-color: #a855f7;
  }
}


