/* ─── Toast Notification ─── */
.toast-notification {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    min-width: 320px;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    animation: toast-slide-in 0.4s ease-out;
    overflow: hidden;
}

.toast-notification.toast-hide {
    animation: toast-slide-out 0.3s ease-in forwards;
}

.toast-success {
    background: #0d6832;
    color: #d1fae5;
    border-left: 4px solid #34d399;
}

.toast-error {
    background: #8b1a1a;
    color: #fecaca;
    border-left: 4px solid #f87171;
}

.toast-warning {
    background: #7c4a03;
    color: #fef3c7;
    border-left: 4px solid #fbbf24;
}

.toast-info {
    background: #1e3a5f;
    color: #bfdbfe;
    border-left: 4px solid #60a5fa;
}

.toast-icon {
    flex-shrink: 0;
    font-size: 1.4rem;
    line-height: 1;
    margin-top: 2px;
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.toast-message {
    font-size: 0.9rem;
    line-height: 1.4;
}

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

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

/* Progress bar (auto-dismiss indicator) */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    animation: toast-progress 4s linear forwards;
}

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

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

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Stack multiple toasts */
#toast-notification-error {
    top: calc(1.5rem + 90px);
}
