#alert-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999999;
    max-width: 300px;
}

.custom-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    background-color: #4caf50;
    /* Default to success color */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

.custom-alert.alert-danger {
    background-color: #f44336;
}

.custom-alert.alert-success {
    background-color: #4caf50;
}

.custom-alert .close-alert {
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.loader {
    display: inline-block;
    /* Ensure the loader is inline with other elements */
    margin-left: 10px;
    /* Add some space from the submit button */
    font-size: 14px;
    /* Adjust font size for the loading text */
    color: #333;
    /* Color of the loading text */
}

.loader:before {
    content: '';
    display: inline-block;
    /* Required for the spinner */
    width: 12px;
    /* Width of the spinner */
    height: 12px;
    /* Height of the spinner */
    border: 2px solid #3498db;
    /* Spinner border color */
    border-top-color: transparent;
    /* Top color for the spinner animation */
    border-radius: 50%;
    /* Make it round */
    animation: spin 0.8s linear infinite;
    /* Spin animation */
    margin-right: 5px;
    /* Space between spinner and text */
}

/* Spin Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
        /* Start position */
    }

    100% {
        transform: rotate(360deg);
        /* End position */
    }
}