/* Moved from views/home.php */
/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(var(--c-text-inverse-rgb) / 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid rgb(var(--c-shadow-rgb) / 0.1);
    border-top: 4px solid var(--c-text-muted);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    font-size: 1.2rem;
    color: var(--c-text);
}

/* Custom modal styles */
.ai-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50000;
}

.ai-modal.show {
    display: block;
}

.ai-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(var(--c-shadow-rgb) / 0.5);
}

.ai-modal-dialog {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;
}

.ai-modal-content {
    background: var(--c-surface);
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgb(var(--c-shadow-rgb) / 0.2);
}

.ai-modal-header,
.ai-modal-footer {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--c-border);
}

.ai-modal-footer {
    border-top: 1px solid var(--c-border);
    border-bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

.ai-modal-body {
    padding: 1.25rem;
}
