/* EasyContent Specific Styles */

body.agent-page {
    font-family: var(--font-sans);
    background: var(--bg-body);
    min-height: 100vh;
    overflow-x: hidden;
}

.main-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    width: 90%;
    margin: 0 auto;
    padding: var(--space-4);
}

.config-area {
    margin-bottom: var(--space-3);
}

.url-input-with-buttons {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.url-input-container {
    flex: 1;
    min-width: 0;
    position: relative;
}

.url-input {
    width: 100%;
    padding: var(--space-4) calc(var(--space-4) + var(--space-8)) var(--space-4) var(--space-4);
    border: var(--form-border-width) solid var(--primary);
    border-radius: var(--form-border-radius);
    font-size: var(--font-size-base);
    background: var(--bg-card);
    transition: var(--transition-base);
    color: var(--text-primary);
}

.url-input:focus {
    border-color: var(--primary-hover);
    box-shadow: var(--form-focus-shadow);
    outline: none;
}

.audio-settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.synthesis-settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-4);
}

.audio-setting-field,
.synthesis-setting-field {
    min-width: 0;
}

.source-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.action-card {
    max-height: fit-content;
    padding: 1rem;
}

.source-tab {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    border: 2px solid var(--border-color, #dee2e6);
    border-radius: 12px;
    background: var(--card-bg, #fff);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.source-tab:hover {
    border-color: var(--primary-color, #0d6efd);
    transform: translateY(-2px);
}

.source-tab.active {
    border-color: var(--primary-color, #0d6efd);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.source-tab i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.source-tab.active i {
    color: var(--primary-color, #0d6efd);
}

.source-tab-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.source-tab-desc {
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
    margin-top: 0.25rem;
}

/* Source Input Panels */
.source-input-panel {
    display: none;
    padding: 1.5rem;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 12px;
    background: var(--card-bg, #fff);
    margin-bottom: 1.5rem;
}

.source-input-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed var(--border-color, #dee2e6);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light, #f8f9fa);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--primary-color, #0d6efd);
    background: rgba(13, 110, 253, 0.05);
}

.upload-dropzone i {
    font-size: 3rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 1rem;
}

.upload-dropzone.dragover i {
    color: var(--primary-color, #0d6efd);
}

.upload-dropzone .upload-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-dropzone .upload-hint {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
}

.file-preview {
    display: none;
    padding: 1rem;
    background: var(--bg-light, #f8f9fa);
    border-radius: 8px;
    margin-top: 1rem;
}

.file-preview.active {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-preview .file-icon {
    font-size: 2rem;
    color: var(--primary-color, #0d6efd);
}

.file-preview .file-info {
    flex: 1;
}

.file-preview .file-name {
    font-weight: 600;
}

.file-preview .file-size {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
}

.file-preview .file-remove {
    color: var(--danger-color, #dc3545);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Text Input Panel */
.text-input-container {
    position: relative;
}

.text-input-area {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    padding-right: 60px;
    /* Space for mic button */
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

.text-input-area:focus {
    border-color: var(--primary-color, #0d6efd);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.mic-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color, #0d6efd);
    background: white;
    color: var(--primary-color, #0d6efd);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.mic-btn:hover {
    background: var(--primary-color, #0d6efd);
    color: white;
    transform: scale(1.1);
}

.mic-btn.recording {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    margin-top: 0.5rem;
}

/* YouTube icon link */
.youtube-icon-link {
    text-decoration: none;
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.url-icon {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

.youtube-icon-link:hover .url-icon {
    filter: brightness(1.2);
}


/* Images preview grid */
.images-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.image-thumb {
    position: relative;
    border: 2px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light, #f8f9fa);
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-thumb:hover {
    border-color: var(--primary-color, #0d6efd);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.image-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.image-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.image-thumb-remove:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.image-thumb-info {
    padding: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
    text-align: center;
    background: white;
}

.image-thumb-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Step indicator for skipped steps */
.step.skipped {
    opacity: 0.5;
}

.step.skipped .step-circle {
    background: var(--text-muted, #6c757d);
}

.step.skipped .step-status {
    color: var(--text-muted, #6c757d);
}

/* Source badge in results */
.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.source-badge.youtube {
    background: #ff000020;
    color: #cc0000;
}

.source-badge.audio {
    background: #9c27b020;
    color: #7b1fa2;
}

.source-badge.document {
    background: #2196f320;
    color: #1976d2;
}

.source-badge.text {
    background: #4caf5020;
    color: #388e3c;
}

.preview-block {
    background: var(--bg-light, #f8f9fa);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 10px;
    padding: 1rem;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.preview-player {
    width: 100%;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 10px;
    overflow: hidden;
}

.preview-player iframe {
    width: 100%;
    height: 315px;
    border: none;
}

.preview-player audio {
    width: 100%;
    margin-top: 1rem;
}

.preview-player video {
    width: 100%;
    max-height: 400px;
}

.preview-document-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light, #f8f9fa);
    border: 2px dashed var(--border-color, #dee2e6);
    border-radius: 10px;
    min-height: 200px;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.preview-document-link i {
    font-size: 3rem;
    color: var(--primary-color, #0d6efd);
}

.preview-document-link .btn {
    margin-top: 1rem;
}

.preview-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.preview-images-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color, #dee2e6);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.meta-item-label {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.meta-item-value {
    font-weight: 600;
}

/* Step 3 detail cards: ensure comfortable internal spacing even when using generic workflow cards */
#step3-process-card .col-lg-6>.config-card {
    padding: var(--space-4) var(--space-5);
}

#step3-process-card .col-lg-6>.config-card h5 {
    margin: 0 0 var(--space-4) 0;
}

.process-toggle {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    column-gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 10px;
    margin-bottom: 0.65rem;
    background: var(--card-bg, #fff);
}

.process-toggle .form-check-input {
    grid-column: 2;
    margin: 0;
    float: none;
    align-self: center;
}

.process-toggle.form-check,
.process-toggle.form-switch {
    padding-left: 0.75rem;
}

.process-toggle > div {
    grid-column: 1;
    min-width: 0;
}

/* Config button in process toggle */
.config-btn {
    position: static;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--primary-color, #0d6efd);
    background: white;
    color: var(--primary-color, #0d6efd);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    padding: 0;
    grid-column: 3;
    justify-self: end;
}

.config-btn:hover {
    background: var(--primary-color, #0d6efd);
    color: white;
    transform: scale(1.1);
}

.config-btn.active {
    background: var(--primary-color, #0d6efd);
    color: white;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.config-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.config-btn:disabled:hover {
    background: white;
    color: #ccc;
    transform: none;
}

.config-btn i {
    pointer-events: none;
}

.process-label {
    font-weight: 600;
    margin-bottom: 0;
}

.process-note {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0;
}

.process-toggle.mandatory {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.02));
    border-left: 3px solid var(--primary-color, #0d6efd);
}

.process-toggle.mandatory .process-label::after {
    content: " *";
    color: var(--primary-color, #0d6efd);
    font-weight: bold;
}

.process-toggle.mandatory .form-check-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mandatory-badge {
    display: inline-block;
    background: var(--primary-color, #0d6efd);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Result Actions Toolbar */
.result-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color, #dee2e6);
}

/* Split Input Options (Upload / Gallery) */
.input-options-container {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .input-options-container {
        flex-direction: column;
    }
}

.input-options-container .upload-dropzone {
    flex: 1;
    margin-bottom: 0;
    /* Remove bottom margin when in flex container */
}

.gallery-import-option {
    flex: 1;
    border: 2px dashed var(--border-color, #dee2e6);
    border-radius: 12px;
    background: var(--bg-light, #f8f9fa);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.gallery-import-option:hover {
    border-color: var(--primary-color, #0d6efd);
    background: rgba(13, 110, 253, 0.05);
}

.gallery-import-option i {
    font-size: 3rem;
    color: var(--primary-color, #0d6efd);
    /* Same color as dropzone icon on hover */
    margin-bottom: 1rem;
    opacity: 0.7;
}

.gallery-import-option:hover i {
    opacity: 1;
    transform: scale(1.1);
    transition: transform 0.2s;
}

.gallery-import-option .option-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.gallery-import-option .option-desc {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
}

/* Modal Gallery Grid */
.gallery-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.gallery-modal-item {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    position: relative;
}

.gallery-modal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-modal-item.selected {
    border-color: var(--primary-color, #0d6efd);
    background-color: var(--primary-50, #e7f1ff);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.3);
}

.gallery-modal-item.selected::after {
    content: '\f00c';
    /* FontAwesome check */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-color, #0d6efd);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.gallery-modal-thumb {
    height: 100px;
    width: 100%;
    object-fit: cover;
    background: #eee;
}

.gallery-modal-icon-thumb {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #adb5bd;
    background: #f8f9fa;
}

.gallery-modal-info {
    padding: 0.75rem;
}

.gallery-modal-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.gallery-modal-date {
    font-size: 0.7rem;
    color: var(--text-muted, #6c757d);
}

/* Gallery Modal Enhancements */
.gallery-modal-container {
    padding: 0 10px;
}

.gallery-section-title {
    color: var(--text-color, #333);
    font-weight: 600;
    opacity: 0.9;
}

/* Gallery Item Card - Enhanced for Overlay */
.gallery-modal-item {
    position: relative;
    overflow: hidden;
    /* Ensure overlay stays within bounds */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Maintain existing flex/grid styles */
}

.gallery-modal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Metadata Overlay */
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through to card */
}

.gallery-modal-item:hover .gallery-item-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
    text-align: left;
    font-size: 0.85rem;
}

.overlay-content p {
    line-height: 1.4;
    color: #e0e0e0;
}

.overlay-content strong {
    color: #fff;
}

#step1-config-area {
    margin-top: 0;
}

.synthesis-area {
    margin-bottom: 0;
}

.results-tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.results-tab {
    flex: 1;
    padding: var(--space-3) var(--space-5);
    border: none;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.results-tab.active {
    background: var(--bg-card);
    color: var(--success);
    font-weight: var(--font-weight-semibold);
}

.results-tab:hover {
    background: var(--bg-card);
}

.results-content {
    background: var(--bg-card);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: var(--space-5);
    min-height: 400px;
    box-shadow: var(--shadow-sm);
}

.result-section {
    display: none;
}

.result-section.active {
    display: block;
}

.result-title {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

.result-text {
    background: var(--bg-surface-alt);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    white-space: pre-wrap;
    max-height: 320px;
    overflow-y: auto;
}

.progress-wrapper {
    text-align: center;
    padding: var(--space-4) var(--space-5) var(--space-5);
}

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

.progress-title {
    color: var(--text-primary);
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.progress-percentage {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    min-width: 60px;
    box-shadow: var(--shadow-lg);
}

.progress-bar-container {
    margin-bottom: var(--space-6);
}

.progress-bar {
    height: 12px;
    border-radius: var(--radius-md);
    background: rgba(102, 126, 234, 0.1);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    overflow: hidden;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progress-glow 2s infinite;
}

@keyframes progress-glow {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    gap: var(--space-4);
}

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

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    border: 3px solid rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: var(--space-2);
}

.step.active .step-circle {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.step.completed .step-circle {
    background: var(--gradient-secondary);
    border-color: var(--success);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.step-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    text-align: center;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-1);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
}

.step.completed .step-label {
    color: var(--success);
    font-weight: var(--font-weight-semibold);
}

.step-status {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    min-height: 14px;
}

.step.active .step-status {
    color: var(--primary);
}

.step.completed .step-status {
    color: var(--success);
}

.current-step-info {
    background: rgba(102, 126, 234, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border-left: 4px solid var(--primary);
}

.step-description {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-base);
}

.step-details {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-base);
}

.generator-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-3);
}

.section-title {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-xl);
}

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

.btn-secondary-action:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.log-container {
    background: var(--bg-surface-alt);
    border: var(--form-border-width) solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    height: 200px;
    max-height: 30vh;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: var(--font-size-base);
    transition: var(--transition-base);
}

.log-content {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: var(--line-height-base);
}

@media (max-width: 768px) {
    #step3-process-card .col-lg-6>.config-card,
    .progress-wrapper {
        padding: var(--space-3) var(--space-4);
    }
}

@media (max-width: 768px) {
    .main-layout {
        width: 95%;
        padding: var(--space-3);
    }

    .audio-settings-row,
    .synthesis-settings-row {
        grid-template-columns: 1fr;
    }

    .url-input-with-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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