
/* ===== MODERN TOASTR DESIGN ===== */

/* Container positioning */
#toast-container {
    top: 20px;
    right: 20px;
    z-index: 99999;
}

/* Individual toast styling */
#toast-container > div {
    padding: 16px 20px 16px 50px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    margin-bottom: 12px !important;
    width: 380px !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
}

#toast-container > div:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Toast animations */
@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

#toast-container > div {
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

#toast-container > div.toast-removing {
    animation: slideOutRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

/* ===== SUCCESS TOAST ===== */
#toast-container > .toast-success {
    background: linear-gradient(135deg, #00b894, #00a381) !important;
    color: #fff !important;
    border-left: 4px solid #00d2a0 !important;
}

#toast-container > .toast-success:before {
    content: " ";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    /* background: rgba(255, 255, 255, 0.2); */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== ERROR TOAST ===== */
#toast-container > .toast-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
    color: #fff !important;
    border-left: 4px solid #ff4757 !important;
}

#toast-container > .toast-error:before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    /* background: rgba(255, 255, 255, 0.2); */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== WARNING TOAST ===== */
#toast-container > .toast-warning {
    background: linear-gradient(135deg, #fdcb6e, #f9a825) !important;
    color: #2d3436 !important;
    border-left: 4px solid #fdcb6e !important;
}

#toast-container > .toast-warning:before {
    content: "⚠";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
    background: rgba(0, 0, 0, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== INFO TOAST ===== */
#toast-container > .toast-info {
    background: linear-gradient(135deg, #74b9ff, #0984e3) !important;
    color: #fff !important;
    border-left: 4px solid #74b9ff !important;
}

#toast-container > .toast-info:before {
    content: "ℹ";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== PROGRESS BAR ===== */
#toast-container > div .toast-progress {
    height: 3px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border-radius: 0 0 12px 12px !important;
    bottom: 0 !important;
    left: 0 !important;
    opacity: 1 !important;
}

#toast-container > .toast-success .toast-progress {
    background: rgba(255, 255, 255, 0.5) !important;
}

#toast-container > .toast-error .toast-progress {
    background: rgba(255, 255, 255, 0.5) !important;
}

#toast-container > .toast-warning .toast-progress {
    background: rgba(0, 0, 0, 0.2) !important;
}

/* ===== CLOSE BUTTON ===== */
#toast-container > div .toast-close-button {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    opacity: 0.7 !important;
    transition: all 0.3s !important;
    top: 8px !important;
    right: 12px !important;
}

#toast-container > div .toast-close-button:hover {
    color: #fff !important;
    opacity: 1 !important;
    transform: rotate(90deg) scale(1.2) !important;
}

#toast-container > .toast-warning .toast-close-button {
    color: rgba(0, 0, 0, 0.5) !important;
}

#toast-container > .toast-warning .toast-close-button:hover {
    color: #2d3436 !important;
}

/* ===== TOAST TITLE ===== */
#toast-container > div .toast-title {
    font-weight: 600 !important;
    font-size: 15px !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.3px !important;
}

/* ===== TOAST MESSAGE ===== */
#toast-container > div .toast-message {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    opacity: 0.95 !important;
    font-weight: 400 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    #toast-container {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
    }
    
    #toast-container > div {
        width: 100% !important;
        padding: 14px 16px 14px 44px !important;
        border-radius: 10px !important;
    }
    
    #toast-container > .toast-success:before,
    #toast-container > .toast-error:before,
    #toast-container > .toast-warning:before,
    #toast-container > .toast-info:before {
        width: 24px !important;
        height: 24px !important;
        font-size: 14px !important;
        left: 12px !important;
    }
}

/* ===== GLASSMORPHISM VARIANT (Optional) ===== */
/* Uncomment for glass effect */
/*
#toast-container > div {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#toast-container > .toast-success {
    background: rgba(0, 184, 148, 0.85) !important;
}

#toast-container > .toast-error {
    background: rgba(255, 107, 107, 0.85) !important;
}

#toast-container > .toast-warning {
    background: rgba(253, 203, 110, 0.9) !important;
}

#toast-container > .toast-info {
    background: rgba(116, 185, 255, 0.85) !important;
}
*/

/* ===== DARK MODE VARIANT (Optional) ===== */
/* Uncomment for dark mode */
/*
@media (prefers-color-scheme: dark) {
    #toast-container > div {
        color: #fff !important;
    }
    
    #toast-container > .toast-warning {
        color: #2d3436 !important;
    }
}
*/
