/* ============================================
   SOCO ENHANCED UI SYSTEM
   ============================================
   "Digital Studio" Aesthetic - Sophisticated,
   creative, with moments of delight.
   ============================================ */

/* ============================================
   1. CONTENT GENERATION WIZARD
   ============================================
   A step-by-step journey that feels like a
   creative process, not a bureaucratic form.
   ============================================ */

.wizard-container {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

/* Progress indicator - floating pills at top */
.wizard-progress {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--color-slate-200, #e9ecf2);
    transform: translateY(-50%);
    z-index: 0;
}

@media (prefers-color-scheme: dark) {
    .wizard-progress::before {
        background: var(--color-slate-300);
    }
}

.wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    z-index: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.wizard-step-indicator:hover {
    transform: translateY(-2px);
}

.wizard-step-indicator.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.wizard-step-indicator.disabled:hover {
    transform: none;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    font-size: 1rem;
    background: var(--surface-card, #ffffff);
    border: 2px solid var(--color-slate-300, #d1d5e0);
    color: var(--color-slate-500, #5c6577);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.wizard-step-indicator.active .step-circle {
    background: var(--color-electric, #3b6df0);
    border-color: var(--color-electric, #3b6df0);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 109, 240, 0.4);
    transform: scale(1.1);
}

.wizard-step-indicator.completed .step-circle {
    background: var(--color-mint);
    border-color: var(--color-mint);
    color: white;
}

.step-label {
    font-size: 0.8rem;
    font-weight: var(--weight-medium);
    color: var(--color-slate-500, #5c6577);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.wizard-step-indicator.active .step-label {
    color: var(--color-electric, #3b6df0);
}

.wizard-step-indicator.completed .step-label {
    color: var(--color-mint);
}

/* Step panels */
.wizard-panel {
    display: none;
    animation: wizardFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-panel.active {
    display: block;
}

@keyframes wizardFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reverse animation for going back */
.wizard-panel.reverse-enter {
    animation: wizardFadeInReverse 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes wizardFadeInReverse {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step 1: Topic Input - Hero-style large input */
.topic-step {
    text-align: center;
}

.topic-step h2 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--color-ink) 0%, var(--color-electric) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (prefers-color-scheme: dark) {
    .topic-step h2 {
        background: linear-gradient(135deg, var(--color-slate-600) 0%, var(--color-electric) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

.topic-step .subtitle {
    color: var(--color-slate-500);
    margin-bottom: var(--space-xl);
    font-size: 1.1rem;
}

.topic-textarea-wrapper {
    position: relative;
    margin-bottom: var(--space-lg);
}

.topic-textarea {
    width: 100%;
    min-height: 160px;
    padding: var(--space-lg);
    font-size: 1.15rem;
    line-height: 1.7;
    border: 2px solid var(--color-slate-200, #e9ecf2);
    border-radius: 16px;
    background: var(--surface-card, #ffffff);
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.topic-textarea:focus {
    outline: none;
}

.topic-textarea:focus-visible {
    border-color: var(--color-electric, #3b6df0);
    box-shadow: 0 0 0 4px rgba(59, 109, 240, 0.1);
}

.topic-textarea::placeholder {
    color: var(--color-slate-400);
}

.char-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.8rem;
    color: var(--color-slate-400);
    pointer-events: none;
}

/* Character counter warning states */
.char-counter.near-limit {
    color: #b45309;  /* Orange/amber warning */
}

.char-counter.at-limit {
    color: #dc2626;  /* Red error */
    font-weight: 600;
}

/* Step 2: Options - Visual card selectors */
.options-step h3 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.option-section {
    margin-bottom: var(--space-xl);
}

.option-section-label {
    font-size: 0.85rem;
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-slate-500);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.option-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-slate-200);
}

/* Mood/Style Cards - Visual selection */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
}

.mood-card {
    position: relative;
    padding: var(--space-md);
    border: 2px solid var(--color-slate-200, #e9ecf2);
    border-radius: 12px;
    background: var(--surface-card, #ffffff);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.mood-card:hover {
    border-color: var(--color-slate-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mood-card.selected {
    border-color: var(--color-electric, #3b6df0);
    background: rgba(59, 109, 240, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 109, 240, 0.15);
}

@media (prefers-color-scheme: dark) {
    .mood-card.selected {
        background: rgba(92, 139, 245, 0.1);
        box-shadow: 0 0 0 3px rgba(92, 139, 245, 0.2);
    }
}

/* Mood radio inputs - visually hidden but keyboard accessible */
.mood-card input.mood-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styling for keyboard navigation */
.mood-card:focus-within {
    border-color: var(--color-electric, #3b6df0);
    box-shadow: 0 0 0 3px rgba(59, 109, 240, 0.25);
    outline: none;
}

.mood-emoji {
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
    display: block;
}

.mood-name {
    font-weight: var(--weight-medium);
    font-size: 0.9rem;
    color: var(--color-ink);
}

.mood-card.selected .mood-name {
    color: var(--color-electric, #3b6df0);
}

/* Compact select rows */
.options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (max-width: 576px) {
    .options-row {
        grid-template-columns: 1fr;
    }
}

.option-select-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: var(--weight-medium);
    color: var(--color-slate-500);
    margin-bottom: var(--space-xs);
}

.option-select-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 2px solid var(--color-slate-200, #e9ecf2);
    background: var(--surface-card, #ffffff);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.option-select-group select:focus {
    outline: none;
}

.option-select-group select:focus-visible {
    border-color: var(--color-electric, #3b6df0);
    box-shadow: 0 0 0 3px rgba(59, 109, 240, 0.15);
}

/* Credit Mode Toggle - Visual comparison */
.credit-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.credit-option {
    position: relative;
    padding: var(--space-lg);
    border: 2px solid var(--color-slate-200, #e9ecf2);
    border-radius: 16px;
    background: var(--surface-card, #ffffff);
    cursor: pointer;
    transition: all 0.25s ease;
}

.credit-option:hover {
    border-color: var(--color-slate-300);
}

.credit-option.selected {
    border-color: var(--color-electric, #3b6df0);
    box-shadow: 0 4px 20px rgba(59, 109, 240, 0.2);
}

.credit-option:focus-within {
    border-color: var(--color-electric, #3b6df0);
    box-shadow: 0 0 0 3px rgba(59, 109, 240, 0.2);
}

.credit-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.credit-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.credit-option-name {
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    font-size: 1.1rem;
}

.credit-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--weight-semibold);
}

.credit-option.standard .credit-badge {
    background: var(--color-slate-100);
    color: var(--color-slate-600);
}

.credit-option.advanced .credit-badge {
    background: linear-gradient(135deg, var(--color-electric) 0%, #7c3aed 100%);
    color: white;
}

.credit-option-desc {
    font-size: 0.9rem;
    color: var(--color-slate-500);
    line-height: 1.5;
}

.credit-option.selected .credit-option-name {
    color: var(--color-electric, #3b6df0);
}

/* Recommended tag */
.credit-option.advanced::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -10px;
    right: 16px;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: var(--weight-bold);
    letter-spacing: 0.1em;
    background: var(--color-electric, #3b6df0);
    color: white;
    border-radius: 4px;
}

/* Step Configuration Panel (for Advanced mode) - swapped in/out by HTMX */
.step-config-panel {
    margin-top: var(--space-lg);
    padding: var(--space-md) 0;
}

.step-config-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.step-config-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-card, white);
    border: 1px solid var(--color-slate-200, #e9ecf2);
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.step-config-item:hover {
    border-color: var(--color-electric, #3b6df0);
}

.step-config-item:has(input:checked) {
    border-color: var(--color-electric, #3b6df0);
    background: rgba(59, 109, 240, 0.05);
}

.step-config-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--color-electric, #3b6df0);
    cursor: pointer;
}

.step-config-item .step-name {
    font-weight: var(--weight-medium, 500);
    color: var(--color-ink, #1a1f2e);
    font-size: 0.9rem;
}

.step-config-item .step-desc {
    font-size: 0.8rem;
    color: var(--color-slate-500, #5c6577);
    margin-left: auto;
}

.step-config-hint {
    margin-top: var(--space-sm);
    margin-bottom: 0;
    font-size: 0.8rem;
    color: var(--color-slate-400, #8896ab);
}

/* Responsive: stack on mobile */
@media (max-width: 576px) {
    .step-config-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .step-config-item {
        background: var(--surface-card, #1a202c);
        border-color: var(--color-slate-300, #4a5568);
    }

    .step-config-item:has(input:checked) {
        background: rgba(59, 109, 240, 0.1);
    }
}

/* Step 3: References */
.references-step h3 {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.references-step .subtitle {
    text-align: center;
    color: var(--color-slate-500);
    margin-bottom: var(--space-xl);
}

.url-input-area {
    position: relative;
}

.url-textarea {
    width: 100%;
    min-height: 120px;
    padding: var(--space-lg);
    font-size: 1rem;
    line-height: 1.8;
    border: 2px solid var(--color-slate-200, #e9ecf2);
    border-radius: 12px;
    background: var(--surface-card, #ffffff);
    font-family: var(--font-mono);
    resize: vertical;
}

.url-textarea:focus {
    outline: none;
}

.url-textarea:focus-visible {
    border-color: var(--color-electric, #3b6df0);
    box-shadow: 0 0 0 4px rgba(59, 109, 240, 0.1);
}

/* YouTube detection indicator */
.youtube-detected {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    margin-top: var(--space-md);
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    border-radius: 10px;
    font-size: 0.9rem;
    animation: youtubeSlideIn 0.3s ease;
}

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

.youtube-detected svg {
    width: 24px;
    height: 24px;
}

.youtube-detected .yt-text {
    flex: 1;
}

/* YouTube pre-check status indicator */
.youtube-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm, 0.5rem);
    padding: var(--space-md, 1rem);
    margin-top: var(--space-sm, 0.5rem);
    border-radius: 8px;
    font-size: 0.9rem;
    animation: youtubeSlideIn 0.3s ease;
}

.youtube-status.checking {
    background: var(--color-slate-100, #f1f5f9);
    border: 1px solid var(--color-slate-200, #e2e8f0);
    color: var(--color-slate-600, #475569);
}

.youtube-status.success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #86efac;
    color: #166534;
}

.youtube-status.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

@media (prefers-color-scheme: dark) {
    .youtube-status.checking {
        background: var(--color-slate-200, #334155);
        border-color: var(--color-slate-300, #475569);
        color: var(--color-slate-500, #94a3b8);
    }

    .youtube-status.success {
        background: linear-gradient(135deg, #14532d 0%, #166534 100%);
        border-color: #22c55e;
        color: #bbf7d0;
    }

    .youtube-status.error {
        background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
        border-color: #ef4444;
        color: #fecaca;
    }
}

.youtube-status .status-icon::before {
    display: inline-block;
    margin-right: 0.25rem;
}

.youtube-status.checking .status-icon::before {
    content: "⏳";
    animation: pulse 1s infinite;
}

.youtube-status.success .status-icon::before {
    content: "✓";
    color: #22c55e;
}

.youtube-status.error .status-icon::before {
    content: "✗";
    color: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.youtube-status .status-text {
    font-weight: 600;
}

.youtube-status .status-details {
    flex: 1;
    font-size: 0.85em;
    opacity: 0.9;
}

/* Bug 8.2 fix: YouTube error action buttons */
.youtube-error-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.youtube-error-actions .btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.youtube-error-actions .btn-small.outline {
    background: transparent;
    border: 1px solid currentColor;
}

.youtube-error-actions .btn-small.outline:hover {
    background: var(--color-slate-100);
}

@media (prefers-color-scheme: dark) {
    .youtube-error-actions .btn-small.outline:hover {
        background: var(--color-slate-300);
    }
}

/* Optional toggles */
.optional-toggles {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-slate-100);
    border-radius: 12px;
}

@media (prefers-color-scheme: dark) {
    .optional-toggles {
        background: var(--color-slate-200);
    }
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
}

.toggle-row + .toggle-row {
    border-top: 1px solid var(--color-slate-200);
}

@media (prefers-color-scheme: dark) {
    .toggle-row + .toggle-row {
        border-top-color: var(--color-slate-300);
    }
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: var(--weight-medium);
}

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

/* Navigation buttons */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-slate-200, #e9ecf2);
}

.wizard-nav button {
    min-width: 140px;
}

.wizard-nav button.btn-next,
.wizard-nav button.btn-generate {
    background: var(--color-electric, #3b6df0) !important;
    background-color: var(--color-electric, #3b6df0) !important;
    color: white !important;
    border: none !important;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.wizard-nav button.btn-next:hover,
.wizard-nav button.btn-generate:hover {
    background: var(--color-electric-hover, #2a5ad0) !important;
    background-color: var(--color-electric-hover, #2a5ad0) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 109, 240, 0.3);
}

.wizard-nav button.btn-back {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--color-slate-500, #5c6577) !important;
    border: 2px solid var(--color-slate-200, #e9ecf2) !important;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: var(--weight-medium);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.wizard-nav button.btn-back:hover {
    border-color: var(--color-slate-400, #9ca3b4) !important;
    color: var(--color-ink, #1a1f2e) !important;
}

/* Credit display floating badge */
.credits-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-card, #ffffff);
    border: 1px solid var(--color-slate-200, #e9ecf2);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    z-index: 100;
}

.credits-floating .credit-icon {
    font-size: 1.2rem;
}

.credits-floating .credit-count {
    font-weight: var(--weight-semibold);
    color: var(--color-mint);
}

.credits-floating .credit-count.low {
    color: var(--color-crimson);
}

.credits-floating .credit-count.medium {
    color: var(--color-ember);
}

/* ============================================
   2. ENHANCED DASHBOARD - KANBAN STYLE
   ============================================ */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.dashboard-header h1 {
    margin: 0;
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: var(--color-slate-100);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

@media (prefers-color-scheme: dark) {
    .view-toggle {
        background: var(--color-slate-200);
    }
}

.view-toggle-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: var(--weight-medium);
    text-decoration: none;
    color: var(--color-slate-500, #5c6577);
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    color: var(--color-ink, #1a1f2e);
    text-decoration: none;
}

.view-toggle-btn.active {
    background: var(--surface-card, #ffffff);
    color: var(--color-ink, #1a1f2e);
    box-shadow: var(--shadow-sm);
}

/* Quick Start Card */
.quick-start-card {
    background: linear-gradient(135deg, var(--color-electric) 0%, #5856d6 100%);
    color: white;
    padding: var(--space-xl);
    border-radius: 20px;
    margin-bottom: var(--space-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 30px rgba(59, 109, 240, 0.3);
    position: relative;
    overflow: hidden;
}

.quick-start-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.quick-start-content h2 {
    margin: 0 0 var(--space-sm) 0;
    font-size: 1.5rem;
    color: white;
}

.quick-start-content p {
    margin: 0;
    opacity: 0.9;
}

.quick-start-btn {
    background: white;
    color: var(--color-electric, #3b6df0);
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.quick-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: var(--color-electric, #3b6df0);
}

/* Kanban Board Layout */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

.kanban-column {
    background: var(--color-slate-100);
    border-radius: 16px;
    padding: var(--space-md);
    min-height: 300px;
}

@media (prefers-color-scheme: dark) {
    .kanban-column {
        background: var(--color-slate-200);
    }
}

.kanban-column-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid transparent;
}

.kanban-column.drafts .kanban-column-header {
    border-bottom-color: var(--color-ember);
}

.kanban-column.generating .kanban-column-header {
    border-bottom-color: var(--color-electric);
}

.kanban-column.completed .kanban-column-header {
    border-bottom-color: var(--color-mint);
}

.kanban-column.posted .kanban-column-header {
    border-bottom-color: #8b5cf6;
}

.column-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.kanban-column.drafts .column-icon {
    background: var(--color-ember-soft);
    color: var(--color-ember);
}

.kanban-column.generating .column-icon {
    background: rgba(59, 109, 240, 0.15);
    color: var(--color-electric);
}

.kanban-column.completed .column-icon {
    background: var(--color-mint-soft);
    color: var(--color-mint);
}

.kanban-column.posted .column-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.column-title {
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    font-size: 0.95rem;
}

.column-count {
    margin-left: auto;
    background: var(--color-slate-200);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: var(--weight-medium);
}

@media (prefers-color-scheme: dark) {
    .column-count {
        background: var(--color-slate-300);
    }
}

/* Kanban Cards */
.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.kanban-card {
    background: var(--surface-card, #ffffff);
    border-radius: 12px;
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-slate-200, #e9ecf2);
}

.kanban-card.generating {
    border-left: 3px solid var(--color-electric, #3b6df0);
}

.kanban-card.generating::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-electric, #3b6df0), transparent, var(--color-electric, #3b6df0));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.kanban-card-title {
    font-weight: var(--weight-medium);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--color-slate-500);
}

.kanban-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Social thumbnails on card */
.kanban-card-social {
    display: flex;
    gap: 4px;
    margin-top: var(--space-sm);
}

.social-thumb {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.social-thumb.facebook { background: #1877f2; color: white; }
.social-thumb.linkedin { background: #0a66c2; color: white; }
.social-thumb.x { background: #000; color: white; }
.social-thumb.posted { opacity: 1; }
.social-thumb.pending { opacity: 0.4; }

/* Hover overlay with quick actions */
.kanban-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 31, 46, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

@media (prefers-color-scheme: dark) {
    .kanban-card-overlay {
        background: rgba(37, 43, 61, 0.95);
    }
}

.kanban-card:hover .kanban-card-overlay {
    opacity: 1;
    pointer-events: auto;
}

.overlay-btn {
    padding: 8px 12px;
    border-radius: 8px;
    background: white;
    color: var(--color-ink);
    font-size: 0.8rem;
    font-weight: var(--weight-medium);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.15s ease;
}

.overlay-btn:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.overlay-btn.primary {
    background: var(--color-electric, #3b6df0);
    color: white;
}

/* Empty column state */
.kanban-empty {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    color: var(--color-slate-400);
    font-size: 0.9rem;
}

.kanban-empty-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    opacity: 0.5;
}

/* ============================================
   3. IMMERSIVE GENERATION PROGRESS
   ============================================ */

.immersive-progress {
    max-width: 600px;
    margin: var(--space-2xl) auto;
    text-align: center;
}

/* Central animation container */
.progress-visualization {
    width: 180px;
    height: 180px;
    margin: 0 auto var(--space-xl);
    position: relative;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.progress-ring-bg {
    fill: none;
    stroke: var(--color-slate-200, #e9ecf2);
    stroke-width: 6;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--color-electric, #3b6df0);
    stroke-width: 6;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: var(--surface-card, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.progress-icon {
    font-size: 3rem;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Writing animation */
.writing-animation {
    display: flex;
    gap: 4px;
}

.writing-dot {
    width: 8px;
    height: 8px;
    background: var(--color-electric, #3b6df0);
    border-radius: 50%;
    animation: writingBounce 1.4s ease-in-out infinite;
}

.writing-dot:nth-child(2) { animation-delay: 0.2s; }
.writing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes writingBounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-12px);
    }
}

/* Status text */
.progress-status {
    margin-bottom: var(--space-lg);
}

.progress-status h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    color: var(--color-ink);
}

.progress-status p {
    color: var(--color-slate-500);
    font-size: 1rem;
}

/* Motivational micro-copy */
.progress-motivation {
    padding: var(--space-md) var(--space-lg);
    background: var(--color-slate-100);
    border-radius: 12px;
    margin-bottom: var(--space-xl);
    font-style: italic;
    color: var(--color-slate-600);
}

@media (prefers-color-scheme: dark) {
    .progress-motivation {
        background: var(--color-slate-200);
        color: var(--color-slate-500);
    }
}

/* Step indicators - horizontal timeline */
.progress-steps-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-md);
    margin-bottom: var(--space-xl);
    position: relative;
}

.progress-steps-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--space-lg);
    right: var(--space-lg);
    height: 2px;
    background: var(--color-slate-200, #e9ecf2);
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    position: relative;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-card, #ffffff);
    border: 2px solid var(--color-slate-300, #d1d5e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.timeline-step.active .timeline-dot {
    background: var(--color-electric, #3b6df0);
    border-color: var(--color-electric, #3b6df0);
    color: white;
    animation: timelinePulse 1.5s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 109, 240, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 109, 240, 0);
    }
}

.timeline-step.failed .timeline-dot {
    background: var(--color-crimson);
    border-color: var(--color-crimson);
    color: white;
}

.timeline-label {
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    color: var(--color-slate-500, #5c6577);
    text-align: center;
    max-width: 80px;
}

.timeline-step.active .timeline-label {
    color: var(--color-electric, #3b6df0);
    font-weight: var(--weight-medium);
}

.timeline-step.completed .timeline-label {
    color: var(--color-mint);
}

/* Live preview area */
.live-preview {
    background: var(--surface-card, #ffffff);
    border: 1px solid var(--color-slate-200, #e9ecf2);
    border-radius: 16px;
    padding: var(--space-lg);
    min-height: 150px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.live-preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-slate-500);
}

.live-preview-dot {
    width: 8px;
    height: 8px;
    background: var(--color-mint);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-preview-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-ink);
    position: relative;
}

.live-preview-content::after {
    content: '|';
    animation: cursorBlink 1s step-end infinite;
    color: var(--color-electric, #3b6df0);
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Time estimate */
.progress-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--color-slate-500);
    font-size: 0.9rem;
    margin-top: var(--space-lg);
}

.progress-time-icon {
    font-size: 1.1rem;
}

/* Success state */
.progress-success {
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.progress-success .progress-center {
    background: var(--color-mint-soft);
}

.progress-success .progress-icon {
    color: var(--color-mint);
    animation: none;
}

/* Error state */
.progress-error .progress-center {
    background: var(--color-crimson-soft);
}

.progress-error .progress-icon {
    color: var(--color-crimson);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ============================================
   4. RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .wizard-progress {
        gap: var(--space-sm);
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .mood-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .credit-toggle {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .view-toggle-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .quick-start-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }

    .progress-steps-timeline {
        overflow-x: auto;
        padding-bottom: var(--space-md);
    }

    .timeline-step {
        min-width: 60px;
    }

    .credits-floating {
        bottom: 16px;
        right: 16px;
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .wizard-progress::before {
        display: none;
    }

    .topic-textarea {
        min-height: 140px;
        padding: var(--space-md);
        font-size: 1rem;
    }

    .wizard-nav {
        flex-direction: column;
        gap: var(--space-md);
    }

    .wizard-nav button {
        width: 100%;
        justify-content: center;
    }

    .wizard-nav .btn-back {
        order: 1;
    }
}

/* Extra small screens - credit toggle cards adjustment */
@media (max-width: 400px) {
    .credit-option {
        padding: var(--space-md);
        border-radius: 12px;
    }

    .credit-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .credit-option-name {
        font-size: 1rem;
    }

    .credit-badge {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    .credit-option-desc {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .credit-option.advanced::before {
        font-size: 0.55rem;
        padding: 3px 6px;
        top: -8px;
        right: 10px;
    }

    /* Also reduce mood card sizes for very small screens */
    .mood-grid {
        gap: var(--space-sm);
    }

    .mood-card {
        padding: var(--space-sm);
        border-radius: 10px;
    }

    .mood-emoji {
        font-size: 1.4rem;
    }

    .mood-name {
        font-size: 0.8rem;
    }
}

/* ============================================
   5. MOTION ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .wizard-panel,
    .wizard-panel.reverse-enter,
    .kanban-card,
    .progress-icon,
    .writing-dot,
    .timeline-step.active .timeline-dot,
    .live-preview-dot,
    .live-preview-content::after,
    .progress-success,
    .progress-error .progress-icon,
    .youtube-detected,
    .kanban-card.generating::before {
        animation: none !important;
    }

    .wizard-step-indicator:hover,
    .mood-card:hover,
    .kanban-card:hover,
    .wizard-nav button:hover {
        transform: none !important;
    }
}

/* ============================================
   5.1. FOCUS-VISIBLE STYLES
   ============================================
   Use :focus-visible for keyboard-only focus rings.
   This prevents focus rings on mouse clicks while
   maintaining accessibility for keyboard users.
   ============================================ */

/* Wizard navigation buttons */
.wizard-nav button.btn-next:focus-visible,
.wizard-nav button.btn-generate:focus-visible {
    outline: 2px solid var(--color-electric, #3b6df0);
    outline-offset: 2px;
    box-shadow: 0 6px 20px rgba(59, 109, 240, 0.3);
}

.wizard-nav button.btn-back:focus-visible {
    outline: 2px solid var(--color-electric, #3b6df0);
    outline-offset: 2px;
    border-color: var(--color-electric, #3b6df0) !important;
}

/* Wizard step indicators */
.wizard-step-indicator:focus-visible .step-circle {
    outline: 2px solid var(--color-electric, #3b6df0);
    outline-offset: 2px;
}

/* Credit option cards (radio buttons) */
.credit-option:focus-within {
    outline: 2px solid var(--color-electric, #3b6df0);
    outline-offset: 2px;
}

/* Step config checkboxes */
.step-config-item:focus-within {
    border-color: var(--color-electric, #3b6df0);
    box-shadow: 0 0 0 3px rgba(59, 109, 240, 0.15);
}

/* View toggle buttons */
.view-toggle-btn:focus-visible {
    outline: 2px solid var(--color-electric, #3b6df0);
    outline-offset: 2px;
}

/* Quick start button */
.quick-start-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Kanban cards */
.kanban-card:focus-visible {
    outline: 2px solid var(--color-electric, #3b6df0);
    outline-offset: 2px;
}

/* Overlay buttons */
.overlay-btn:focus-visible {
    outline: 2px solid var(--color-electric, #3b6df0);
    outline-offset: 2px;
}

/* YouTube error action buttons */
.youtube-error-actions .btn-small:focus-visible {
    outline: 2px solid var(--color-electric, #3b6df0);
    outline-offset: 2px;
}

/* Add URL button */
.btn-add-url:focus-visible {
    outline: 2px solid var(--color-electric, #3b6df0);
    outline-offset: 2px;
    border-color: var(--color-electric, #3b6df0);
    color: var(--color-electric, #3b6df0);
}

/* Format option cards */
.format-option:focus-within {
    outline: 2px solid var(--color-electric, #3b6df0);
    outline-offset: 2px;
}

/* Role model section select */
.role-model-section select:focus-visible {
    border-color: var(--color-electric, #3b6df0);
    box-shadow: 0 0 0 3px rgba(59, 109, 240, 0.15);
}

/* URL input fields */
.url-input:focus-visible {
    border-color: var(--color-electric, #3b6df0);
    box-shadow: 0 0 0 3px rgba(59, 109, 240, 0.15);
}

/* ============================================
   6. VALIDATION & ERROR STATES
   ============================================
   CSS classes for form validation to replace
   inline JavaScript styles. Provides consistent
   error styling across the wizard.
   ============================================ */

/* Generic validation error class for inputs */
.validation-error {
    border-color: var(--color-crimson, #dc2626) !important;
    background-color: var(--color-crimson-soft, #fef2f2) !important;
}

.validation-error:focus {
    border-color: var(--color-crimson, #dc2626) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
    outline: none;
}

@media (prefers-color-scheme: dark) {
    .validation-error {
        background-color: var(--color-crimson-soft, #2e1a1a) !important;
    }
}

/* Error state for form fields */
.error,
.has-error,
input.error,
textarea.error,
select.error {
    border-color: var(--color-crimson, #dc2626) !important;
}

.error:focus,
.has-error:focus,
input.error:focus,
textarea.error:focus,
select.error:focus {
    border-color: var(--color-crimson, #dc2626) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* Error message text */
.error-message,
.validation-message {
    color: var(--color-crimson, #dc2626);
    font-size: 0.875rem;
    margin-top: var(--space-xs, 0.25rem);
    display: block;
}

/* Error message icon */
.error-message::before {
    content: "! ";
    font-weight: var(--weight-bold, 700);
}

/* Field wrapper with error state */
.field-error .error-message {
    display: block;
}

.field-error input,
.field-error textarea,
.field-error select {
    border-color: var(--color-crimson, #dc2626);
}

/* Shake animation for validation errors */
@keyframes validationShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.validation-shake {
    animation: validationShake 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
    .validation-shake {
        animation: none !important;
    }
}

/* ============================================
   V2 PIPELINE: NEW COMPONENT STYLES
   ============================================ */

/* Role Model Selector */
.role-model-section {
    margin-top: var(--space-lg);
}

.role-model-section .proto-select,
.role-model-section select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md, 8px);
    border: 1px solid var(--color-slate-200, #e9ecf2);
    font-size: 0.95rem;
    background: var(--surface-card, white);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.role-model-section select:hover {
    border-color: var(--color-electric, #3b6df0);
}

.role-model-section select:focus {
    outline: none;
}

/* Output Format Toggle */
.format-section {
    margin-top: var(--space-lg);
}

.format-toggle-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.format-option {
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    background: var(--surface-card, white);
    border: 2px solid var(--color-slate-200, #e9ecf2);
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    transition: all 0.2s ease;
}

.format-option:hover {
    border-color: var(--color-electric, #3b6df0);
}

.format-option.selected {
    border-color: var(--color-electric, #3b6df0);
    background: rgba(59, 109, 240, 0.05);
}

@media (prefers-color-scheme: dark) {
    .format-option.selected {
        background-color: #374151;
        border-color: var(--color-electric, #3b6df0);
    }
}

.format-option .format-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.format-option .format-name {
    font-weight: var(--weight-medium, 500);
    font-size: 1rem;
    color: var(--color-ink, #1a1f2e);
    margin-bottom: var(--space-xs);
}

.format-option .format-hint {
    font-size: 0.85rem;
    color: var(--color-slate-500, #5c6577);
    font-family: var(--font-mono, monospace);
}

.format-option.selected .format-name {
    color: var(--color-electric, #3b6df0);
}

/* URL Hierarchy (V2) */
.url-hierarchy-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.url-input-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.url-priority-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.url-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: var(--weight-bold, 700);
}

.url-badge.badge-primary {
    background: var(--color-electric, #3b6df0);
    color: white;
}

.url-badge.badge-secondary {
    background: var(--color-slate-400, #8896a8);
    color: white;
}

.url-badge.badge-muted {
    background: var(--color-slate-200, #e9ecf2);
    color: var(--color-slate-600, #464f60);
}

.url-priority-label {
    font-weight: var(--weight-medium, 500);
    color: var(--color-ink, #1a1f2e);
    font-size: 0.9rem;
}

.url-weight-hint {
    font-size: 0.8rem;
    color: var(--color-slate-500, #5c6577);
}

.url-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md, 8px);
    border: 1px solid var(--color-slate-200, #e9ecf2);
    font-size: 0.95rem;
    background: var(--surface-card, white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.url-input:hover {
    border-color: var(--color-slate-300, #d1d5e0);
}

.url-input:focus {
    outline: none;
}

.btn-add-url {
    align-self: flex-start;
    padding: var(--space-xs) var(--space-md);
    background: transparent;
    border: 1px dashed var(--color-slate-300, #d1d5e0);
    border-radius: var(--radius-md, 8px);
    color: var(--color-slate-500, #5c6577);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-add-url:hover {
    border-color: var(--color-electric, #3b6df0);
    color: var(--color-electric, #3b6df0);
    background: rgba(59, 109, 240, 0.05);
}

/* V2 Info Callout */
.info-callout {
    background: rgba(59, 109, 240, 0.08);
    border-left: 4px solid var(--color-electric, #3b6df0);
    padding: var(--space-md);
    border-radius: 0 var(--radius-md, 8px) var(--radius-md, 8px) 0;
    margin-bottom: var(--space-lg);
}

.info-callout p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-ink, #1a1f2e);
}

.info-callout p.helper-text {
    color: var(--color-slate-500, #5c6577);
    margin-top: var(--space-xs);
}

@media (prefers-color-scheme: dark) {
    .info-callout {
        background-color: #1e3a5f;
        border-color: #3b82f6;
        color: #e5e7eb;
    }

    .info-callout p {
        color: #e5e7eb;
    }
}

/* V2 Generation Info (fixed 5 credits) */
.generation-info-v2 {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(59, 109, 240, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 1px solid var(--color-electric, #3b6df0);
    border-radius: var(--radius-md, 8px);
}

.generation-info-v2 .generation-info-label {
    font-weight: var(--weight-semibold, 600);
    font-size: 1.1rem;
    color: var(--color-ink, #1a1f2e);
    margin-right: var(--space-sm);
}

.generation-info-v2 .credit-badge-info {
    background: linear-gradient(135deg, var(--color-electric) 0%, #7c3aed 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: var(--weight-semibold, 600);
}

.generation-info-v2 .generation-info-desc {
    margin-top: var(--space-sm);
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--color-slate-500, #5c6577);
}

/* Generate button with credit cost badge */
.btn-generate .credit-cost-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: var(--space-sm);
}

/* Helper text styling */
.helper-text {
    font-size: 0.85rem;
    color: var(--color-slate-500, #5c6577);
    margin-top: var(--space-xs);
}

/* YouTube indicator for v2 */
#youtube-indicator-v2 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 0, 0, 0.08);
    border-radius: var(--radius-md, 8px);
    margin-top: var(--space-sm);
}

#youtube-indicator-v2 .yt-text {
    font-size: 0.9rem;
    color: var(--color-ink, #1a1f2e);
}

/* =============================================================================
   FILE UPLOAD SECTION
   ============================================================================= */

.file-upload-section {
    margin-top: var(--space-md);
}

.file-sources-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md, 8px);
    border: 1px solid var(--color-border, #e2e8f0);
    background: var(--color-surface, #fff);
}

.file-card.success {
    border-color: var(--color-success, #22c55e);
    background: rgba(34, 197, 94, 0.05);
}

.file-card.error {
    border-color: var(--color-error, #ef4444);
    background: rgba(239, 68, 68, 0.05);
    color: var(--color-error, #ef4444);
}

.file-card .file-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
}

.file-card .file-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.file-card .file-meta {
    font-size: 0.8rem;
    color: var(--color-muted, #64748b);
}

.file-card .file-remove-btn {
    flex-shrink: 0;
    margin: 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}
