/* ==================== TOAST NOTIFICATIONS ==================== */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #1f2937;
    padding: 14px 22px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    z-index: 9999;
    border-left: 4px solid #6b7280;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    max-width: 360px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.toast i {
    font-size: 19px;
    flex-shrink: 0;
}

.toast-success { border-left-color: #16a34a; }
.toast-success i { color: #16a34a; }

.toast-error { border-left-color: #dc2626; }
.toast-error i { color: #dc2626; }

.toast-info { border-left-color: #2563eb; }
.toast-info i { color: #2563eb; }

/* If a success and an error toast are both present, stack the second one below the first */
.toast + .toast {
    top: 168px;
}

@media (max-width: 480px) {
    .toast {
        left: 16px;
        right: 16px;
        top: 90px;
        max-width: none;
    }
    .toast + .toast {
        top: 156px;
    }
}
