/* Toast-уведомления ДомУчет */
#toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    pointer-events: none;
    max-width: 360px;
    width: calc(100vw - 2.5rem);
}

#toast-container * {
    box-sizing: border-box;
    max-width: 100%;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    background: #fff;
    border-radius: 12px;
    padding: .85rem 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.08);
    border-left: 4px solid #9DAABF;
    pointer-events: all;
    position: relative;
    overflow: hidden;
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
    transition: transform .35s cubic-bezier(.34,1.3,.7,1), opacity .25s ease;
    cursor: default;
}
.toast.toast-show {
    transform: translateX(0);
    opacity: 1;
}
.toast.toast-hide {
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
}

.toast-success { border-left-color: #1DB954; }
.toast-error   { border-left-color: #EF4444; }
.toast-warning { border-left-color: #F59E0B; }
.toast-info    { border-left-color: #2C6DB5; }

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: .05rem;
}
.toast-success .toast-icon { color: #1DB954; }
.toast-error   .toast-icon { color: #EF4444; }
.toast-warning .toast-icon { color: #F59E0B; }
.toast-info    .toast-icon { color: #2C6DB5; }
.toast-icon svg { width: 20px; height: 20px; display: block; }

.toast-msg {
    flex: 1;
    font-size: .88rem;
    line-height: 1.45;
    color: #1A2540;
    font-family: 'PT Sans', sans-serif;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #9DAABF;
    transition: color .15s;
    margin-top: .05rem;
}
.toast-close:hover { color: #5A6880; }
.toast-close svg { width: 15px; height: 15px; display: block; }

/* Progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: toast-progress linear forwards;
    transform-origin: left;
}
.toast-success .toast-progress { background: #1DB954; }
.toast-error   .toast-progress { background: #EF4444; }
.toast-warning .toast-progress { background: #F59E0B; }
.toast-info    .toast-progress { background: #2C6DB5; }

@keyframes toast-progress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@media (max-width: 480px) {
    #toast-container {
        top: auto;
        bottom: 1rem;
        right: .75rem;
        left: .75rem;
        max-width: none;
        width: auto;
    }
}
