/* Base Theme Configuration - Fast Loading */

/* Prevent FOUC (Flash of Unstyled Content) */
body {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

body.theme-loaded {
    opacity: 1;
}

/* Loading indicator */
.theme-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    display: none;
}

.theme-loading.show {
    display: block;
}

/* Spinner animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}