/* Shared Full-Screen Loader Styles */
.global-loader, .full-screen-loader, .property-loader, .file-uploader-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.loader-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(241, 145, 61, 0.1);
    animation: loaderPulse 2s ease-in-out infinite;
}

.loader-animation {
    margin-bottom: 1.5rem;
}

.loader-animation .spinner-border {
    border-color: #f1913d;
    border-right-color: transparent;
    animation: loaderSpin 1s linear infinite;
}

.loader-message h4 {
    color: #f1913d;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.loader-message p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    word-wrap:break-word;
}

.loader-progress {
    margin-top: 1rem;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f1913d, #ff6b35);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.loader-progress span {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .loader-content {
        max-width: 300px;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .loader-message h4 {
        font-size: 1.1rem;
    }
}

/* Legacy support for existing loaders */
#loading, #fullScreenLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loading-center {
    text-align: center;
}

.wrap-loader {
    position: relative;
    display: inline-block;
}

.loader {
    width: 40px;
    height: 40px;
   /* border: 4px solid #f1913d;
    border-top: 4px solid transparent;*/
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
    margin: 0 auto 1rem;
}