/* Toast Container - Professional Stacking */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
}

/* Base Toast - Premium Glassmorphism */
.toast {
    pointer-events: auto;
    min-width: 320px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    color: #2d3436;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 6px solid #ccc;
    direction: rtl;

    transform: translateX(-100%) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    animation: toastSlideIn 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes toastSlideIn {
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.toast.exiting {
    transform: translateX(-120%);
    opacity: 0;
}

/* Icons and Visual Cues */
.toast-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

/* Type Variations with Modern Colors */
.toast-success {
    border-right-color: #00b894;
}

.toast-success .toast-icon {
    background: rgba(0, 184, 148, 0.1);
}

.toast-error {
    border-right-color: #d63031;
}

.toast-error .toast-icon {
    background: rgba(214, 48, 49, 0.1);
}

.toast-warning {
    border-right-color: #fdcb6e;
}

.toast-warning .toast-icon {
    background: rgba(253, 203, 110, 0.1);
}

.toast-info {
    border-right-color: #0984e3;
}

.toast-info .toast-icon {
    background: rgba(9, 132, 227, 0.1);
}

/* Dark Mode Integration */
body.dark-mode .toast {
    background: rgba(45, 52, 54, 0.85);
    color: #dfe6e9;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}