/* Loader contained within parent */
#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: auto;
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Loader text */
#loader p {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #007BFF;
    /* Professional blue */
    font-family: Arial, sans-serif;
    animation: pulse 1.5s infinite;
}

/* Text pulsing effect */
@keyframes pulse {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.4;
        transform: scale(1);
    }
}

/* Hide loader after load */
body.loaded #loader {
    display: none;
}