/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.loading-m {
    width: 80px;
    height: 80px;
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    display: none;
}

.loading-logo {
    height: 40px;
    opacity: 0;
    transform: translateX(-30px) scale(0.8);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-left: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.loading-m.small {
    width: 50px;
    height: 50px;
    transform: scale(1);
}

.loading-logo.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.loading-screen.hide {
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
}

.loading-content::before {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ED2939, #ed29398b);
    border-radius: 2px;
    animation: loadingBar 2s ease-in-out infinite;
}

/* Prevent scrolling during loading */
body.loading {
    overflow: hidden;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingBar {
    0%, 100% {
        transform: translateX(-50%) scaleX(0.5);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }
}

/* Smooth page reveal */
.page-content {
    opacity: 0;
    /*transform: translateY(20px);*/
    transition: all 0.8s ease-out;
}

.page-content.show {
    opacity: 1;
    /*transform: translateY(0);*/
}
