/* Global and Content Loader Base Styles */
.global-loader, .content-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 1;
    transition: opacity 0.5s ease; /* Smooth fade effect */
}

.global-loader {
    z-index: 9999; /* Ensures it appears above everything */
}

.content-loader {
    z-index: 1; /* Lower than topbar */
    display: none; /* Hide initially */
}

/* Loader Spinner */
.loader, .content-loader::after {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinning Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}