/* =====================================================================
                    TOAST УВЕДОМЛЕНИЯ
   ===================================================================== */

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  width: calc(100% - 2rem);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-left: 4px solid;
  pointer-events: all;
  animation: toast-slide-in 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.toast--success {
  border-left-color: #10b981;
}

.toast--error {
  border-left-color: #dc2626;
}

.toast--info {
  border-left-color: #3b82f6;
}

.toast--warning {
  border-left-color: #f59e0b;
}

.toast__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast--success .toast__icon {
  color: #10b981;
}

.toast--error .toast__icon {
  color: #dc2626;
}

.toast--info .toast__icon {
  color: #3b82f6;
}

.toast--warning .toast__icon {
  color: #f59e0b;
}

.toast__content {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #1f2937;
}

.toast__close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.toast__close:hover {
  color: #1f2937;
}

.toast__close svg {
  width: 100%;
  height: 100%;
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast--closing {
  animation: toast-slide-out 0.3s ease-in forwards;
}

@keyframes toast-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .toast-container {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
    width: auto;
  }

  .toast {
    padding: 0.875rem 1rem;
  }

  .toast__content {
    font-size: 0.875rem;
  }
}
