/* Improved Preloader Styling */
.main {
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px); 
}

.loader-gif {
    width: 80px; 
    height: 80px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite ease-in-out; 
}

/* Optional: Add a loading text */
.loader-text {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin-top: 15px;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Animation for GIF (if not already animated) */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Smooth fade-out effect */
.loader.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.error-code {
    font-size: 10rem;
    color: #d9534f; 
    margin-bottom: 20px;
}

.text-xs-center {
    text-align: center !important;
}

.hide {
    display: none !important;
}