/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #282828;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Light mode loading */
body.light-mode .loading-overlay {
    background: #ffffff;
}

body.light-mode .loading-spinner {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: #111827;
}

/* Hide content initially */
.app-layout {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: .5s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

