/* Контейнер, который держит все уведомления */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column-reverse; /* Новые сверху, старые снизу */
    gap: 10px; /* Расстояние между уведомлениями */
    z-index: 9999;
    pointer-events: none; /* Чтобы клики проходили сквозь пустые места */
}

/* Само уведомление */
.toast-item {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* Анимация появления */
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    pointer-events: auto; /* Возвращаем кликабельность самому тосту */
}

/* Класс, который добавляется JS-ом для показа */
.toast-item.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Контент внутри */
.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e5e5e5;
    font-size: 0.95rem;
}

.toast-icon {
    font-size: 1.2rem;
}

/* Кнопка закрытия */
.toast-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #fff;
}

/* Цветные полоски слева (опционально) */
.toast-item.success { border-left: 4px solid #4cd964; }
.toast-item.error   { border-left: 4px solid #ff3b30; }
.toast-item.info    { border-left: 4px solid #007aff; }
.toast-item.warning { border-left: 4px solid #ffcc00; }
.toast-item.access  { border-left: 4px solid #af52de; } /* Фиолетовый для доступа */