.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
}

.toast {
    width: 360px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #252525;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    animation: toastIn 0.5s ease, toastOut 0.5s ease 10s forwards;
    border-left: 5px solid transparent;
}

/* верхний ряд: иконка + текст */
.toast-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 22px;
    line-height: 1;
    opacity: 0.95;
}

.toast-text {
    font-size: 15px;
    color: #f3f4f6;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

/* кнопка снизу */
.toast-button-wrapper {
    display: flex;
    justify-content: flex-start;
}

.toast-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #333333;
    color: #f3f4f6;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.toast-action-btn:hover {
    background: #444444;
    transform: translateY(-1px);
}

.toast-action-btn .arrow {
    transition: transform 0.2s ease;
}

.toast-action-btn:hover .arrow {
    transform: translateX(4px);
}



/* акценты по типу */
.toast-success { border-left-color: #22c55e; }
.toast-error { border-left-color: #ef4444; }
.toast-action { border-left-color: #3b82f6; }

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

.toast {
    position: relative;
    overflow: hidden;
}

/* сама полоса */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    animation: toastProgress 10s linear forwards;
}

/* цвета под тип */
.toast-success .toast-progress {
    background: #22c55e;
}

.toast-error .toast-progress {
    background: #ef4444;
}

.toast-action .toast-progress {
    background: #3b82f6;
}

/* анимация уменьшения */
@keyframes toastProgress {
    from {
        transform: scaleX(1);
        transform-origin: left;
    }
    to {
        transform: scaleX(0);
        transform-origin: left;
    }
}


/* анимации */
@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    to { transform: translateX(120%); opacity: 0; }
}


