/* Loading Bumbacel - Styling */

.bumbacel-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.bumbacel-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.loader-square {
    position: relative;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.loader-logo {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.loader-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 1;
}

.circle-progress {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        rgba(178, 154, 107, 0.4) 0deg 306deg,
        transparent 306deg 360deg
    );
    animation: rotate 2s linear infinite;
    position: relative;
}

.circle-progress::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .loader-square {
        width: 160px;
        height: 160px;
    }
    
    .loader-logo {
        width: 45px;
        height: 45px;
    }
    
    .loader-circle {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .loader-square {
        width: 140px;
        height: 140px;
    }
    
    .loader-logo {
        width: 40px;
        height: 40px;
    }
    
    .loader-circle {
        width: 80px;
        height: 80px;
    }
}

/* Smooth page transition */
body.loading {
    overflow: hidden;
}

body.loaded {
    overflow: auto;
}

/* Additional visual enhancements */
.bumbacel-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(178, 154, 107, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
