/* Base loader container - enhanced version of existing #loading-gif-div */
#loading-gif-div {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* Centered loader content */
.loader-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
}

/* Loader message */
.loader-message {
    color: #495057;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Loader animations container */
.loader-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

/* Spinner animation (existing, enhanced) */
.loader-spinner {
    font-size: 32px;
    color: #007bff;
    animation: spin 1s linear infinite;
}

/* Pulsing dots animation */
.loader-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.loader-dot {
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    animation: pulse-dot 1.4s ease-in-out infinite both;
}

.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }
.loader-dot:nth-child(3) { animation-delay: 0; }
.loader-dot:nth-child(4) { animation-delay: 0.16s; }
.loader-dot:nth-child(5) { animation-delay: 0.32s; }

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-dot {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .loader-content {
        padding: 25px 30px;
        margin: 20px;
        min-width: 180px;
    }

    .loader-message {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .loader-spinner {
        font-size: 28px;
    }

    .loader-animation {
        height: 35px;
    }
}