/* Loading Spinner Component Styles */

/* Base spinner animation */
.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--edtt-color-primary, #ea4c89);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Spinner sizes */
.loading-spinner-small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.loading-spinner-medium {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.loading-spinner-large {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Container styles */
.loading-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-inline-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    min-height: 100px;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-message {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .loading-fullscreen-overlay {
        background-color: rgba(30, 41, 59, 0.9);
    }

    .loading-message {
        color: #cbd5e1;
    }

    .loading-spinner {
        border-color: #374151;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .loading-content {
        gap: 0.75rem;
    }

    .loading-message {
        font-size: 0.85rem;
    }
}

/* Loading states for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.btn-loading .btn-text {
    opacity: 0;
}

/* Card loading overlay */
.card-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: inherit;
    z-index: 10;
}

.card-loading-overlay .loading-spinner {
    width: 24px;
    height: 24px;
    border-width: 2px;
}