﻿#loading {
    position: fixed;
    z-index: 50000;
    background-color: rgba(255, 255, 255, 0.9);
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    transform: translateZ(0);
}

#loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(24, 24, 27, 0.15);
    border-top-color: #18181b;
    animation: loading-spin 0.7s linear infinite;
}

.dark #loading {
    background-color: #09090b;
}

.dark #loading::after {
    border-color: rgba(244, 244, 245, 0.15);
    border-top-color: #f4f4f5;
}

#loading.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

@keyframes loading-spin {
    to { transform: rotate(360deg); }
}
