/* Product Filter Admin */

.askagento-fields-wrap { margin: -6px -12px -12px; }
.askagento-fields-list { min-height: 60px; }
.askagento-no-fields { padding: 30px; text-align: center; color: #666; background: #f9f9f9; margin: 0; }
.askagento-actions { padding: 15px; background: #f9f9f9; margin: 0; border-top: 1px solid #eee; }

/* Field Row */
.askagento-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
}
.askagento-field:hover { background: #f9f9f9; }
.askagento-field.ui-sortable-helper { box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.askagento-field.ui-sortable-placeholder { background: #e5f3ff; border: 2px dashed #0073aa; visibility: visible !important; }

.askagento-handle { cursor: move; color: #999; }
.askagento-label { font-weight: 600; }
.askagento-source { font-size: 12px; background: #f0f0f0; padding: 2px 8px; border-radius: 3px; }
.askagento-type { color: #0073aa; font-size: 12px; }
.askagento-buttons { margin-left: auto; }
.askagento-buttons .button { padding: 0 8px; min-height: 28px; }

/* Config Panel */
.askagento-config {
    width: 100%;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px solid #eee;
}
.askagento-config p { margin: 0 0 10px; }
.askagento-config label { display: block; margin-bottom: 4px; }
.askagento-config input[type="text"], .askagento-config select { width: 100%; max-width: 250px; }

/* Modal */
.askagento-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.askagento-modal-box {
    background: #fff;
    width: 500px;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}
.askagento-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}
.askagento-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.askagento-modal-search {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}
.askagento-modal-search input { width: 100%; padding: 8px; }
.askagento-sources {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}
.askagento-modal-foot {
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Sources List */
.askagento-group-title {
    padding: 8px 15px;
    background: #f5f5f5;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin: 0;
}
.askagento-source-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.askagento-source-item:hover { background: #f9f9f9; }
.askagento-source-item.selected { background: #e5f3ff; }
.askagento-source-item.disabled { opacity: 0.5; cursor: not-allowed; }
.askagento-source-item input { margin-right: 10px; }
.askagento-source-info { flex: 1; }
.askagento-source-name { font-weight: 500; }
.askagento-source-meta { font-size: 12px; color: #888; margin-top: 2px; }
.askagento-source-count { text-align: right; font-weight: 600; }

.askagento-loading { padding: 30px; text-align: center; color: #666; }

/* Shortcode */
#askagento-shortcode { display: block; padding: 10px; background: #f0f0f0; margin: 10px 0; }

/* Gutenberg Block Preview */
.askagento-block-preview {
    padding: 20px;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
    text-align: center;
}
.askagento-block-icon { font-size: 32px; margin-bottom: 10px; }
.askagento-block-title { font-weight: 600; margin-bottom: 5px; }
.askagento-block-filter { color: #0073aa; }

/* Install status polling (Plugins + Settings) */
.askagento-install-poll-status .askagento-status-meta,
#askagento-install-status .askagento-status-meta,
#askagento-sync-data-status .askagento-status-meta {
    margin-top: 4px;
    color: #646970;
    font-size: 13px;
}
.askagento-install-processing-notice p {
    margin: 0.5em 0;
}
