﻿body.theme-loading {
    visibility: hidden;
}

#theme-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

html[data-theme="light"] #theme-loader,
html:not([data-theme]) #theme-loader {
    background: #ffffff;
}

html[data-theme="dark"] #theme-loader {
    background: #121212;
}

.theme-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #757575;
    border-radius: 50%;
    animation: theme-spin 1s linear infinite;
}

html[data-theme="dark"] .theme-loader-spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: #BDBDBD;
}

@keyframes theme-spin {
    to {
        transform: rotate(360deg);
    }
}
