/* ===== Toast Notification ===== */
#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

#toast.show {
    display: block;
}

.toast-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 420px;
    opacity: 0.95;
}

.toast-message.success i {
    color: #00ffb3;
}

.toast-message.error {
    background: linear-gradient(90deg, #d62828, #f77f00);
}

.toast-message.error i {
    color: #fff;
}

@keyframes fadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== Loader Overlay ===== */
#loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    backdrop-filter: blur(3px);
}

#loader-overlay.show {
    display: flex;
}

.loader {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.loader i {
    font-size: 40px;
    color: #0077b6;
    margin-bottom: 10px;
}

.loader p {
    margin-top: 5px;
    color: #0077b6;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 15px;
}

/* Optional: fade out effect before redirect */
body.fade-out {
    opacity: 0;
    transition: opacity 0.6s ease;
}