/* Loading Indicator Styles */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

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

.loading-spinner {
    text-align: center;
}

.spinner-ring {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(184, 134, 11, 0.1);
    border-radius: 50%;
    border-top-color: #B8860B;
    animation: spin 1s linear infinite;
}

.spinner-ring-small {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(184, 134, 11, 0.1);
    border-radius: 50%;
    border-top-color: #B8860B;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
}

.loading-text-small {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* Element-specific loader */
.element-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: inherit;
    transition: opacity 0.2s ease;
}

.element-spinner {
    text-align: center;
}

/* Page skeleton loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-card {
    height: 120px;
    border-radius: 8px;
}
