/* Toast Notification Container */
#toast-container {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 450px;
    pointer-events: none;
}

/* Individual Toast */
.toast-msg {
    pointer-events: auto;
    min-width: 320px;
    max-width: 90%;
    background: #fff;
    color: #333;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: toast-slide-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
    border-left: 5px solid #ccc;
    position: relative;
    overflow: hidden;
}

.toast-msg.hiding {
    animation: toast-slide-out 0.5s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

/* Toast Types */
.toast-success { border-left-color: #4CAF50; background: #f1f9f1; }
.toast-error { border-left-color: #f44336; background: #fff5f4; }
.toast-warning { border-left-color: #ff9800; background: #fffaf2; }
.toast-info { border-left-color: #2196F3; background: #f2f9ff; }

/* Content Wrapper */
.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

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

.toast-success .toast-icon { color: #4CAF50; }
.toast-error .toast-icon { color: #f44336; }
.toast-warning .toast-icon { color: #ff9800; }
.toast-info .toast-icon { color: #2196F3; }

.toast-text {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Close Button */
.toast-close {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 15px;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0,0,0,0.05);
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    background: currentColor;
    opacity: 0.3;
    transform-origin: left;
}

/* Animations */
@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(-150%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(150%);
    }
}