/* Elegant & Clean Loader for home.php */

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(30, 144, 255, 0.15);
    border-top-color: #1e90ff;
    border-right-color: #1e90ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.2);
}

.loader-text {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Media Queries */
@media (max-width: 480px) {
    .loader-spinner {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    .loader-text {
        font-size: 0.85rem;
    }
}