/* =============================================
   Multi-Step Offerte Form - Light/Dark Theme
   ============================================= */

/* Light Theme (Default) */
:root,
[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-elevated: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.08);

    --success: #22c55e;
    --success-light: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --danger: #ef4444;

    --blue: #3b82f6;
    --purple: #8b5cf6;
    --green: #22c55e;
    --orange: #f59e0b;
    --red: #ef4444;
    --pink: #ec4899;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --border-focus: #6366f1;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-body: #0a0a0f;
    --bg-card: #12121a;
    --bg-hover: #1a1a25;
    --bg-elevated: #16161f;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-light: rgba(99, 102, 241, 0.15);

    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

:root {
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Form Wrapper */
.form-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    transition: background-color 0.3s;
}

/* Header */
.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s, border-color 0.3s;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.logo svg {
    width: 32px;
    height: 32px;
}

.logo .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
}

.theme-toggle:hover svg {
    stroke: var(--primary);
}

[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-sun,
[data-theme="dark"] .icon-moon {
    display: block;
}

.close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
}

.close-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
}

/* Progress Bar */
.progress-container {
    padding: 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s, border-color 0.3s;
}

.progress-bar {
    height: 4px;
    background: var(--bg-hover);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 20%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-dot {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: 2px solid var(--border);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
}

.progress-step.active .step-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.progress-step.completed .step-dot {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.progress-step span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.progress-step.active span {
    color: var(--primary);
    font-weight: 600;
}

[data-theme="dark"] .progress-step.active span {
    color: var(--primary-hover);
}

/* Form Main */
.form-main {
    flex: 1;
    padding: 40px 24px;
    overflow-y: auto;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.step-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.category-option input {
    display: none;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

[data-theme="dark"] .category-card {
    background: var(--bg-elevated);
}

.category-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.category-option input:checked + .category-card {
    border-color: var(--primary);
    background: var(--primary-light);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.category-icon.blue { background: rgba(59, 130, 246, 0.1); }
.category-icon.blue svg { stroke: var(--blue); }
.category-icon.purple { background: rgba(139, 92, 246, 0.1); }
.category-icon.purple svg { stroke: var(--purple); }
.category-icon.green { background: rgba(34, 197, 94, 0.1); }
.category-icon.green svg { stroke: var(--green); }
.category-icon.orange { background: rgba(245, 158, 11, 0.1); }
.category-icon.orange svg { stroke: var(--orange); }
.category-icon.red { background: rgba(239, 68, 68, 0.1); }
.category-icon.red svg { stroke: var(--red); }
.category-icon.pink { background: rgba(236, 72, 153, 0.1); }
.category-icon.pink svg { stroke: var(--pink); }

.category-content {
    flex: 1;
}

.category-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.category-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.check-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}

.check-icon svg {
    width: 14px;
    height: 14px;
    stroke: white;
}

.category-option input:checked + .category-card .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
    background: var(--bg-elevated);
}

.form-input:hover,
.form-textarea:hover {
    border-color: var(--border-hover);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-hint-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.char-counter {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.char-counter.valid {
    color: var(--success);
}

.char-counter.invalid {
    color: var(--danger);
}

/* Option Group */
.option-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    align-items: stretch;
}

.option-group.small {
    grid-template-columns: repeat(3, 1fr);
}

.option-card {
    display: flex;
    height: 100%;
}

.option-card input {
    display: none;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    flex: 1;
}

[data-theme="dark"] .option-content {
    background: var(--bg-elevated);
}

.option-content:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.option-card input:checked + .option-content {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option-icon {
    font-size: 1.5rem;
}

.option-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

[data-theme="dark"] .option-number {
    color: var(--primary-hover);
}

.option-text {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-card input {
    display: none;
}

.checkbox-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="dark"] .checkbox-content {
    background: var(--bg-elevated);
}

.checkbox-content:hover {
    border-color: var(--border-hover);
}

.checkbox-card input:checked + .checkbox-content {
    border-color: var(--primary);
    background: var(--primary-light);
}

.checkbox-icon {
    font-size: 1.2rem;
}

.checkbox-text {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Budget Options */
.budget-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.budget-card input {
    display: none;
}

.budget-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="dark"] .budget-content {
    background: var(--bg-elevated);
}

.budget-content:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.budget-card input:checked + .budget-content {
    border-color: var(--primary);
    background: var(--primary-light);
}

.budget-range {
    font-size: 1.1rem;
    font-weight: 700;
}

.budget-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Single Checkbox */
.checkbox-single {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-single input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

[data-theme="dark"] .checkmark {
    background: var(--bg-elevated);
}

.checkbox-single:hover .checkmark {
    border-color: var(--border-hover);
}

.checkbox-single input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-single input:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

[data-theme="dark"] .checkbox-label a {
    color: var(--primary-hover);
}

/* Trust Info */
.trust-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding: 20px;
    background: var(--success-light);
    border-radius: var(--radius);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trust-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--success);
    flex-shrink: 0;
}

/* Success State */
.success-step {
    text-align: center;
}

.success-content {
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--success);
}

.success-content h1 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.success-content > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.next-steps {
    text-align: left;
    padding: 24px;
    background: var(--bg-hover);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

[data-theme="dark"] .next-steps {
    background: var(--bg-elevated);
}

.next-steps h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.next-steps ul {
    list-style: none;
}

.next-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.next-steps li:last-child {
    border-bottom: none;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

[data-theme="dark"] .step-num {
    color: var(--primary-hover);
}

.next-steps li span:last-child {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-back,
.btn-next,
.btn-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

[data-theme="dark"] .btn-back {
    background: var(--bg-elevated);
}

.btn-back:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
}

.btn-back.hidden {
    visibility: hidden;
}

.btn-next,
.btn-submit {
    background: var(--gradient);
    border: none;
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-submit {
    display: none;
}

.btn-submit.visible {
    display: flex;
}

.btn-next.hidden {
    display: none;
}

.btn-back svg,
.btn-next svg,
.btn-submit svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient);
    color: white;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

/* Conditional Fields */
.conditional {
    display: none;
}

.conditional.show {
    display: flex;
}

/* Error States */
.form-input.error,
.form-textarea.error {
    border-color: var(--danger) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

/* Responsive */
@media (max-width: 600px) {
    .form-wrapper {
        box-shadow: none;
    }

    .form-main {
        padding: 24px 16px;
    }

    .step-header h1 {
        font-size: 1.4rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .option-group {
        grid-template-columns: 1fr 1fr;
    }

    .option-group.small {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .progress-step span {
        display: none;
    }

    .form-footer {
        padding: 16px;
    }

    .btn-back,
    .btn-next,
    .btn-submit {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* =============================================
   AI Assistant Styles
   ============================================= */

.form-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-assist-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ai-assist-btn svg {
    width: 14px;
    height: 14px;
}

.ai-assist-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.ai-assist-btn.attention {
    animation: wiggle 0.6s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-5deg); }
    30% { transform: rotate(5deg); }
    45% { transform: rotate(-5deg); }
    60% { transform: rotate(5deg); }
    75% { transform: rotate(-2deg); }
    90% { transform: rotate(2deg); }
}

.ai-notes-container {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.ai-header-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ai-notes-body {
    margin-bottom: 16px;
}

.ai-example {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ai-example-label {
    font-weight: 600;
    color: #8b5cf6;
}

.ai-notes-footer {
    display: flex;
    justify-content: flex-end;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ai-badge svg {
    width: 14px;
    height: 14px;
}

.ai-close-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.ai-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ai-notes-input {
    background: var(--bg-card) !important;
    margin-bottom: 12px;
}

[data-theme="dark"] .ai-notes-input {
    background: var(--bg-elevated) !important;
}

.ai-generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ai-generate-btn svg {
    width: 18px;
    height: 18px;
}

.ai-generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.ai-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ai-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* AI Generated indicator */
.ai-generated-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #8b5cf6;
    margin-top: 6px;
}

.ai-generated-indicator svg {
    width: 12px;
    height: 12px;
}
