/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(2px);
    visibility: visible;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

/* Spinner Animation */
.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #e85d04;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Loading Text */
.loading-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Dots Animation */
.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(232, 93, 4, 0);
        text-shadow:
            .25em 0 0 rgba(232, 93, 4, 0),
            .5em 0 0 rgba(232, 93, 4, 0);
    }
    40% {
        color: #e85d04;
        text-shadow:
            .25em 0 0 rgba(232, 93, 4, 0),
            .5em 0 0 rgba(232, 93, 4, 0);
    }
    60% {
        text-shadow:
            .25em 0 0 #e85d04,
            .5em 0 0 rgba(232, 93, 4, 0);
    }
    80%, 100% {
        text-shadow:
            .25em 0 0 #e85d04,
            .5em 0 0 #e85d04;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }

    .loading-text {
        font-size: 14px;
    }
}
