/* Global Loader Overlay */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.global-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: #3b82f6;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-content p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Loading text for tabs and sections */
.loading-text {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
    padding: 20px;
    background: #f8fafc;
    border-radius: 4px;
    margin: 10px 0;
}

/* Filter row loading */
.filter-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 6px;
    min-height: 120px;
}

.filter-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

.filter-loading p {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* No data message */
.no-data-message {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    font-style: italic;
    padding: 30px 20px;
    background: #f1f5f9;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    margin: 10px 0;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .loader-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .loader-content p {
        font-size: 14px;
    }
    
    .loading-text {
        font-size: 12px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .loader-spinner {
        width: 35px;
        height: 35px;
        border-width: 3px;
    }
    
    .loader-content p {
        font-size: 13px;
    }
    
    .loading-text {
        font-size: 11px;
        padding: 12px;
    }
}
