/**
 * FlowContent AI Template Styles
 */
.flowcontent-ai-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.flowcontent-card-wide { grid-column: 1 / 2; }
.form-row { margin-bottom: 15px; }
.form-row label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-row-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.form-row-group .form-row { margin-bottom: 0; }
.form-actions { margin-top: 20px; text-align: center; }
.ai-result-container { margin-top: 30px; padding-top: 20px; border-top: 1px solid #ddd; }
.ai-result-content { background: #f9f9f9; padding: 20px; border-radius: 5px; margin: 15px 0; max-height: 400px; overflow-y: auto; white-space: pre-wrap; }
.ai-result-actions { display: flex; gap: 10px; }
.ai-loading { text-align: center; padding: 40px; }
.ai-loading .spinner { float: none; }
.quick-tools hr { margin: 20px 0; }
.quick-tool h4 { margin: 0 0 10px 0; }
.quick-tool input, .quick-tool textarea, .quick-tool select { width: 100%; margin-bottom: 10px; }
.quick-tool .button { width: 100%; }
.tool-result { margin-top: 15px; padding: 10px; background: #f5f5f5; border-radius: 5px; display: none; }
.tool-result.visible { display: block; }
.keywords-result .keyword-tag { display: inline-block; padding: 5px 10px; margin: 3px; background: #0073aa; color: #fff; border-radius: 15px; font-size: 12px; }

/* Historique */
.ai-history-list { list-style: none; padding: 0; margin: 0; }
.ai-history-item { padding: 12px; margin-bottom: 10px; background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 5px; }
.ai-history-item:hover { background: #f0f0f0; }
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.history-header strong { font-size: 14px; color: #23282d; }
.history-date { font-size: 11px; color: #888; }
.history-preview { margin: 0 0 10px 0; font-size: 12px; color: #666; line-height: 1.4; }
.history-actions { display: flex; gap: 5px; }
.history-actions .button-small { font-size: 11px; padding: 2px 8px; }

@media (max-width: 960px) {
    .flowcontent-ai-grid { grid-template-columns: 1fr; }
    .flowcontent-card-wide { grid-column: 1; }
}
