/* Loading Web CSS - Dedicated file for main page loading overlay */

/* Main Loading Overlay */
#loading-web-main-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0E2545;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
    /* Ensure perfect centering */
    margin: 0;
    padding: 0;
    opacity: 1;
}

/* CSS Property untuk rotating border */
@property --loading-web-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Keyframes untuk rotasi border */
@keyframes loading-web-rotate-border {
    to {
        --loading-web-angle: 360deg;
    }
}

/* Loading Container - Mirip dengan loadhabo_in_popup */
.loading-web-circular-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    height: 100px;
    width: 100px;
    border: 3px solid #0000;
    border-radius: 50%;
    background: linear-gradient(#0E2545, #0E2545) padding-box, linear-gradient(var(--loading-web-angle), #7154FE, #74F0FC) border-box;
    animation: 0.5s loading-web-rotate-border linear infinite;
    position: relative;
    /* Ensure perfect centering */
    margin: 0;
    flex-shrink: 0;
}

/* Loading Icon Habo */
.loading-web-habo-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    /* Ensure perfect centering within container */
    margin: auto;
    /* Menghapus semua animasi dan efek cahaya */
}

/* Responsive Design */
@media only screen and (max-width: 600px) {
    .loading-web-circular-container {
        width: 80px;
        height: 80px;
        padding: 4px;
    }
    
    .loading-web-habo-icon {
        width: 60px;
        height: 60px;
    }
}

@media only screen and (max-width: 400px) {
    .loading-web-circular-container {
        width: 70px;
        height: 70px;
        padding: 4px;
    }
    
    .loading-web-habo-icon {
        width: 50px;
        height: 50px;
    }
}

/* Loading with gradient background (optional) */
.loading-web-overlay-gradient-background {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
}

/* Popup Loading Styles - Konsisten dengan loadhabo_in_popup asli */
.loading-web-popup-container {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 5px;
    height: 55px;
    width: 55px;
    border: 3px solid #0000;
    border-radius: 50%;
    background: linear-gradient(#0E2545, #0E2545) padding-box, linear-gradient(var(--loading-web-angle), #7154FE, #74F0FC) border-box;
    animation: 0.5s loading-web-rotate-border linear infinite;
    margin: 0 auto;
}

.loading-web-popup-container .loading-icon {
    width: 80% !important;
    height: auto !important;
    display: block;
    margin: auto;
    object-fit: contain;
}

/* Loading content container */
.loading-web-verification-content {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 50px 30px;
    min-height: 200px;
}

.loading-web-verification-content .loading-web-popup-container {
    margin: 0 auto;
}
