/* CSS Animated Gradient Generator */

.ag-card { padding: 20px 24px 24px; }
.ag-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
@media (max-width: 780px) { .ag-layout { grid-template-columns: 1fr; } }

.ag-controls { display: flex; flex-direction: column; gap: 4px; }
.ag-section-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 8px; }
.ag-slider-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ag-slider-row .gg-slider { flex: 1; }
.ag-badge { font-size: .83rem; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }

/* Angle presets */
.ag-angle-presets { display: flex; gap: 4px; margin-bottom: 4px; }
.ag-preset-btn { width: 32px; height: 32px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted-2); font-size: 1rem; cursor: pointer; transition: all .13s; display: flex; align-items: center; justify-content: center; }
.ag-preset-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Animation type */
.ag-type-btns { display: flex; gap: 4px; margin-bottom: 4px; flex-wrap: wrap; }
.ag-type-btn { padding: 5px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted-2); font-size: .83rem; font-weight: 500; cursor: pointer; transition: all .13s; }
.ag-type-btn:hover { color: var(--text); border-color: var(--muted-2); }
.ag-type-btn--active { border-color: var(--accent); color: var(--accent); background: rgba(108,139,255,.1); }

/* Color list */
.ag-color-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 8px; }
.ag-color-row-item { display: flex; align-items: center; gap: 8px; }
.ag-color-swatch { width: 28px; height: 28px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; flex-shrink: 0; }
.ag-color-hex { font-size: .82rem; color: var(--muted-2); font-family: monospace; flex: 1; }
.ag-color-remove { background: none; border: none; color: var(--muted-2); cursor: pointer; padding: 3px; line-height: 0; border-radius: 3px; }
.ag-color-remove:hover { color: #ff6b6b; }
.ag-add-color { align-self: flex-start; margin-bottom: 4px; }

/* Presets */
.ag-preset-list { display: flex; flex-direction: column; gap: 5px; }
.ag-preset-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: pointer; transition: border-color .13s; }
.ag-preset-item:hover { border-color: var(--accent); }
.ag-preset-swatch { width: 40px; height: 20px; border-radius: 4px; flex-shrink: 0; }
.ag-preset-name { font-size: .83rem; color: var(--muted); }

/* Preview */
.ag-preview-col { display: flex; flex-direction: column; gap: 12px; }
.ag-preview { height: 220px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }

/* Output */
.ag-output-tabs { display: flex; gap: 3px; }
.ag-out-tab { padding: 5px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted-2); font-size: .83rem; font-weight: 500; cursor: pointer; transition: all .13s; }
.ag-out-tab--active { border-color: var(--accent); color: var(--accent); background: rgba(108,139,255,.1); }

.ag-code-wrap { position: relative; }
.ag-code { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font: .78rem/1.65 "Fira Code","Cascadia Code",monospace; color: var(--muted); overflow-x: auto; white-space: pre; margin: 0; min-height: 120px; }
.ag-code-actions { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.ag-copy-msg { font-size: .83rem; color: var(--accent-2); font-weight: 600; }
