/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.theme-light .preloader {
    background-color: #ffffff;
}

.theme-dark .preloader {
    background-color: #212529;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0d6efd;
    animation: spin 1s ease-in-out infinite;
}

.theme-dark .spinner {
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #0d6efd;
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

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

.content-wrapper {
    opacity: 0;
    transition: opacity 0.3s;
}

.content-wrapper.visible {
    opacity: 1;
}