/* Контейнер для уведомлений */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
  }

  .notification-container-stack {
    gap: 0;
    width: min(400px, calc(100vw - 40px));
    min-height: 0;
  }
  
  /* Стили для всплывающих уведомлений */
  .notification {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 12px 15px;
    min-width: min(280px, calc(100vw - 40px));
    max-width: 400px;
    --stack-depth: 0;
    --stack-scale: 1;
    --stack-shift: 0px;
    --stack-opacity: 1;
    opacity: 0;
    transform: translate3d(0, calc(12px + var(--stack-shift)), 0) scale(calc(0.985 * var(--stack-scale)));
    transition:
      opacity 280ms var(--motion-ease),
      transform 320ms var(--motion-ease),
      filter 300ms var(--motion-ease),
      box-shadow 300ms var(--motion-ease);
    border-left: 4px solid var(--accent-primary);
    will-change: opacity, transform, filter;
    transform-origin: bottom right;
  }
  
  .notification-visible {
    opacity: var(--stack-opacity);
    transform: translate3d(0, var(--stack-shift), 0) scale(var(--stack-scale));
  }

  .notification-hiding {
    opacity: 0;
    transform: translate3d(0, calc(10px + var(--stack-shift)), 0) scale(calc(0.985 * var(--stack-scale)));
  }

  .notification-container-stack .notification {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    --stack-scale: calc(1 - (var(--stack-depth) * 0.05));
    --stack-shift: calc(var(--stack-depth) * -10px);
    --stack-opacity: calc(1 - (var(--stack-depth) * 0.09));
  }

  .notification-container-stack .notification-stacked-back {
    pointer-events: none;
    filter: saturate(0.94);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  }
  
  /* Типы уведомлений */
  .notification-info {
    border-left-color: var(--accent-primary);
  }
  
  .notification-success {
    border-left-color: var(--success-color);
  }
  
  .notification-error {
    border-left-color: var(--error-color);
  }

  .notification-pro {
    border-left-color: var(--accent-secondary);
    width: min(500px, calc(100vw - 40px));
    max-width: 500px;
    padding: 14px 16px;
  }

  .notification-pro-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-primary);
  }
  
  .notification-confirm,
  .notification-prompt {
    border-left-color: var(--accent-secondary);
    padding: 15px;
  }
  
  /* Сообщение */
  .notification-message {
    margin-bottom: 10px;
    line-height: 1.4;
  }
  
  /* Кнопки действий */
  .notification-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
  }
  
  /* Поле ввода */
  .notification-input-container {
    margin-top: 10px;
  }
  
  .notification-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
  }
  
  /* Маленькие кнопки */
  .button-small {
    padding: 5px 12px;
    font-size: 14px;
  }

  /* Progress notification */
  .notification-progress .notification-progress-msg {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .notification-bar-wrap {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary, rgba(128,128,128,0.15));
    border-radius: 3px;
    overflow: hidden;
  }

  .notification-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: width 300ms var(--motion-ease, ease);
  }

  .notification-bar-indeterminate {
    width: 40% !important;
    animation: progressIndeterminate 1.4s ease-in-out infinite;
  }

  @keyframes progressIndeterminate {
    0%   { transform: translateX(-100%); }
    50%  { transform: translateX(180%); }
    100% { transform: translateX(-100%); }
  }

  @media (prefers-reduced-motion: reduce) {
    .notification-bar-indeterminate {
      animation: none;
      width: 100% !important;
      opacity: 0.5;
    }
  }