/* --- VULCAN CUSTOM TOAST SYSTEM --- */
.custom-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100001;
    /* Above all modals (12000) and overlays */
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-pill {
    pointer-events: auto;
    min-width: 320px;
    max-width: 450px;
    background: var(--bg-panel);
    backdrop-filter: blur(24px) saturate(180%);
    border: var(--glass-border);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    animation: toast-in 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    border-left: 6px solid transparent;
}

/* Toast Intents */
.toast-pill.success {
    border-left-color: var(--accent-success);
}

.toast-pill.error {
    border-left-color: var(--accent-danger);
}

.toast-pill.warning {
    border-left-color: var(--accent-warning);
}

.toast-pill.info {
    border-left-color: var(--accent-primary);
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-close {
    flex-shrink: 0;
    margin-top: -4px;
    margin-right: -8px;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s;
    background: none;
    border: none;
    color: var(--text-primary);
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast-pill.closing {
    animation: toast-out 0.3s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
}