/* Loading screen styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.dark .loading-screen {
    background-color: #111827;
}

.loading-content {
    text-align: center;
}

.loading-cube {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 5s infinite linear;
    margin: 0 auto 30px;
}

.loading-cube .face {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid #3b82f6;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.8);
}

.dark .loading-cube .face {
    background: rgba(17, 24, 39, 0.8);
    border-color: #8b5cf6;
}

.loading-cube .front {
    transform: rotateY(0deg) translateZ(30px);
}

.loading-cube .back {
    transform: rotateY(180deg) translateZ(30px);
}

.loading-cube .right {
    transform: rotateY(90deg) translateZ(30px);
}

.loading-cube .left {
    transform: rotateY(-90deg) translateZ(30px);
}

.loading-cube .top {
    transform: rotateX(90deg) translateZ(30px);
}

.loading-cube .bottom {
    transform: rotateX(-90deg) translateZ(30px);
}

.loading-text {
    font-size: 18px;
    margin-bottom: 20px;
    color: #3b82f6;
}

.dark .loading-text {
    color: #8b5cf6;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.dark .loading-bar {
    background: #374151;
}

.loading-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    animation: loading 2s ease-in-out forwards;
}

@keyframes rotate {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes loading {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}






/* Loading screen styles
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .loading-screen {
    background-color: #09090b;
}

.loading-content {
    text-align: center;
    transform: translateY(-20%);
}

.loading-cube {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 8s infinite ease-in-out;
    margin: 0 auto 40px;
}

.loading-cube .face {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(59, 130, 246, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.dark .loading-cube .face {
    background: rgba(9, 9, 11, 0.8);
    border-color: rgba(139, 92, 246, 0.5);
    color: white;
}

.loading-cube .front {
    transform: rotateY(0deg) translateZ(40px);
}

.loading-cube .back {
    transform: rotateY(180deg) translateZ(40px);
}

.loading-cube .right {
    transform: rotateY(90deg) translateZ(40px);
}

.loading-cube .left {
    transform: rotateY(-90deg) translateZ(40px);
}

.loading-cube .top {
    transform: rotateX(90deg) translateZ(40px);
}

.loading-cube .bottom {
    transform: rotateX(-90deg) translateZ(40px);
}

.loading-text {
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 600;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    background-size: 200% 200%;
}

.loading-bar {
    width: 300px;
    height: 6px;
    background: rgba(229, 231, 235, 0.3);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.dark .loading-bar {
    background: rgba(55, 65, 81, 0.3);
}

.loading-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    animation: loading 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes rotate {
    0% {
        transform: rotateX(-15deg) rotateY(0deg);
    }
    50% {
        transform: rotateX(360deg) rotateY(180deg);
    }
    100% {
        transform: rotateX(345deg) rotateY(360deg);
    }
}

@keyframes loading {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}*/