.toast-container {
    position: fixed;
    z-index: 9999;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 380px;
    pointer-events: none;
    font-family: 'Poppins', sans-serif;
}

.toast-container[data-position="tr"] { top: 0; right: 0; align-items: flex-end; }
.toast-container[data-position="tc"] { top: 0; left: 50%; transform: translateX(-50%); align-items: center; }
.toast-container[data-position="tl"] { top: 0; left: 0; align-items: flex-start; }
.toast-container[data-position="br"] { bottom: 0; right: 0; align-items: flex-end; flex-direction: column-reverse; }
.toast-container[data-position="bc"] { bottom: 0; left: 50%; transform: translateX(-50%); align-items: center; flex-direction: column-reverse; }
.toast-container[data-position="bl"] { bottom: 0; left: 0; align-items: flex-start; flex-direction: column-reverse; }

.toast {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 280px;
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(74, 64, 56, 0.18);
    pointer-events: auto;
    color: #FFFFFF;
}

.toast-success { background-color: #7A9B76; }
.toast-error   { background-color: #D9534F; }
.toast-warning { background-color: #D4A94A; }
.toast-info    { background-color: #8F9DB3; }

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.toast-content b {
    font-size: 13px;
    font-weight: 700;
}

.toast-content div {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.95;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.3rem;
    opacity: 0.6;
    line-height: 1;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    transform-origin: left;
    transform: scaleX(1);
}

@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { to { transform: translateX(120%); opacity: 0; } }
@keyframes slideInLeft { from { transform: translateX(-120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutLeft { to { transform: translateX(-120%); opacity: 0; } }
@keyframes slideInDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideOutUp { to { transform: translateY(-100%); opacity: 0; } }
@keyframes slideInUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideOutDown { to { transform: translateY(100%); opacity: 0; } }