/* AI Loading Modal */
.ai-loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ai-loading-modal.active {
    opacity: 1;
    visibility: visible;
}

.ai-loading-content {
    text-align: center;
    color: white;
    background: rgba(30, 41, 59, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    width: 90%;
}

.ai-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
}

.ai-spinner-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #6366f1;
    border-right-color: #8b5cf6;
    border-bottom-color: #ec4899;
    animation: spin 1.5s linear infinite;
}

.ai-spinner-inner::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #ec4899;
    border-right-color: #6366f1;
    animation: spin 2s linear infinite reverse;
}

.ai-spinner-inner::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #8b5cf6;
    border-left-color: #ec4899;
    animation: spin 2.5s linear infinite;
}

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

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

.ai-loading-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-loading-text {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.5;
}