@import url('https://fonts.googleapis.com/css2?family=Antonio&display=swap');

/* Loading Spinner Styles for Iframe Components */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
    position: relative;
    background: white;
}

.spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: 20px;
}

.spinner-ring {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(240, 184, 98, 0.2);
    border-top: 4px solid rgba(240, 184, 98, 1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    font-family: 'Antonio', sans-serif;
    font-size: 16px;
    color: #f0b862;
    font-weight: 500;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Loading overlay for components */
.component-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.3s ease-out;
}

.component-loading-overlay .loading-container {
    min-height: auto;
    background: transparent;
}

.component-loading-overlay .spinner {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.component-loading-overlay .loading-text {
    font-size: 14px;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .loading-container {
        min-height: 300px;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .loading-text {
        font-size: 14px;
    }
    
    .component-loading-overlay .spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .component-loading-overlay .loading-text {
        font-size: 12px;
    }
}
