/* overlays.css - compare overlay, history panel, image generation */
.compare-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.compare-box { background: var(--bg, #fff); border-radius: var(--radius, 8px); padding: 20px; max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.compare-grid img { width: 100%; border-radius: var(--radius-sm, 6px); border: 1px solid var(--border, #e5e5e5); }
.compare-label { font-size: 12px; font-weight: 500; color: var(--text-muted, #6b7280); text-align: center; margin-bottom: 6px; }
.compare-close { position: absolute; top: 12px; right: 16px; font-size: 24px; color: #fff; cursor: pointer; z-index: 10000; }
.history-panel { margin-top: 14px; }
.history-item { background: #f8fafb; border: 1px solid var(--border, #e5e5e5); border-radius: var(--radius, 8px); padding: 10px 12px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.history-info { font-size: 12px; color: var(--text-muted, #6b7280); }
.history-info strong { color: var(--text, #1a1a1a); font-size: 13px; }
.history-actions { display: flex; gap: 6px; }
.history-actions button { font-size: 11px; padding: 4px 10px; border-radius: var(--radius-sm, 6px); cursor: pointer; border: 1px solid var(--border, #e5e5e5); background: var(--bg, #fff); font-family: inherit; transition: all var(--transition, 150ms ease); }
.history-actions button:hover { border-color: var(--border-hover, #d4d4d4); }
.gen-img-btn { font-size: 12px; padding: 4px 12px; border: 1px solid var(--primary-border, #99f6e4); border-radius: var(--radius-sm, 6px); cursor: pointer; background: var(--primary-light, #f0fdfa); color: var(--primary, #0d9488); white-space: nowrap; font-weight: 500; transition: all var(--transition, 150ms ease); font-family: inherit; }
.gen-img-btn:hover { background: #ccfbf1; }
.gen-img-btn:disabled { opacity: .5; cursor: not-allowed; }
.gen-img-area { margin-top: 10px; display: none; }
.gen-img-area img { width: 100%; max-width: 512px; border-radius: var(--radius, 8px); border: 1px solid var(--border, #e5e5e5); }
.gen-img-loading { display: flex; align-items: center; gap: 10px; padding: 12px; background: #f8fafb; border-radius: var(--radius, 8px); font-size: 13px; color: var(--text-muted, #6b7280); }
.gen-img-loading .mini-spinner { width: 18px; height: 18px; border: 2px solid var(--border, #e5e5e5); border-top-color: var(--primary, #0d9488); border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
.gen-img-error { padding: 10px 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-sm, 6px); font-size: 12px; color: #dc2626; margin-top: 8px; }
.gen-img-success { margin-top: 8px; }
.gen-img-success a { font-size: 12px; color: var(--primary, #0d9488); margin-top: 6px; display: inline-block; }
.gen-all-btn { padding: 10px 20px; background: var(--primary, #0d9488); color: #fff; border: none; border-radius: var(--radius-sm, 6px); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background var(--transition, 150ms ease); font-family: inherit; }
.gen-all-btn:hover { background: var(--primary-hover, #0f766e); }
.gen-all-btn:disabled { opacity: .4; cursor: not-allowed; }
