/*=================================================================================
СИСТЕМА УВЕДОМЛЕНИЙ - BASE__NOTIFICATIONS (Переписано с нуля)
=================================================================================*/

/* ==================== КОНТЕЙНЕР ==================== */

.base__notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  max-width: 420px;
  width: 100%;
  pointer-events: none;
}

.base__notifications-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ==================== БАЗОВОЕ УВЕДОМЛЕНИЕ ==================== */

.base__notification {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 20px 8px 20px;
  box-shadow: var(--shadow-primary);
  backdrop-filter: blur(20px);
  pointer-events: auto;
  position: relative;
  cursor: pointer;
  transform: translateX(100px);
  opacity: 0;
  transition: all 0.4s ease;
  overflow: hidden;
}

.base__notification.base__notification--show {
  transform: translateX(0);
  opacity: 1;
}

.base__notification.base__notification--hide {
  transform: translateX(100px);
  opacity: 0;
  pointer-events: none;
}

/* ==================== СОДЕРЖИМОЕ ==================== */

.base__notification-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.base__notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.base__notification-icon i {
  line-height: 1;
}

.base__notification-body {
  flex: 1;
  min-width: 0;
}

.base__notification-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.base__notification-message {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  word-wrap: break-word;
}

/* ==================== КНОПКА ЗАКРЫТИЯ ==================== */

.base__notification-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-normal);
  opacity: 0.8;
  z-index: 10;
  pointer-events: auto;
}

.base__notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
  transform: scale(1.1);
}

/* ==================== ПРОГРЕСС-БАР ==================== */

.base__notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.base__notification-progress-bar {
  height: 100%;
  width: 100%;
  transform: translateX(-100%);
  transition: transform linear;
}

/* ==================== ТИПЫ УВЕДОМЛЕНИЙ ==================== */

.base__notification--success .base__notification-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.base__notification--success .base__notification-progress-bar {
  background: linear-gradient(135deg, #10b981, #059669);
}

.base__notification--error .base__notification-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.base__notification--error .base__notification-progress-bar {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.base__notification--warning .base__notification-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.base__notification--warning .base__notification-progress-bar {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.base__notification--info .base__notification-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.base__notification--info .base__notification-progress-bar {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ==================== ЭФФЕКТЫ НАВЕДЕНИЯ ==================== */

.base__notification:hover {
  transform: translateX(-3px);
  border-color: var(--primary-color);
}

.base__notification:hover .base__notification-progress-bar {
  animation-play-state: paused;
}

/* ==================== АДАПТИВНОСТЬ ==================== */

@media (max-width: 768px) {
  .base__notifications-container {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .base__notification {
    padding: 15px;
  }
  
  .base__notification-content {
    gap: 12px;
  }
  
  .base__notification-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .base__notification-title {
    font-size: 0.9rem;
  }
  
  .base__notification-message {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .base__notifications-container {
    top: 10px;
    right: 5px;
    left: 5px;
  }
  
  .base__notification {
    padding: 12px;
  }
  
  .base__notification-close {
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}