/* ===== Meta-Prompts Page Styles ===== */

/* ===== Typography Scale ===== */
/* 
Unified font size hierarchy:
- Caption/Auxiliary: 0.875rem (14px)
- Normal Text: 1rem (16px) 
- Important Text: 1.125rem (18px)
- Small Headings: 1.25rem (20px)
- Section Headings: 1.5rem (24px)
- Main Titles: 2rem (32px)
*/

/* Layout Structure */
.main-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    background: var(--bg-primary);
    margin-top: 80px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    transition: all var(--transition-normal);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-header h1 {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Progress Section */
.progress-section {
    margin-bottom: 24px;
}

.progress-title {
    font-size: 0.875rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.progress-skills {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 1em;
}

.skill-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.skill-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-count {
    font-weight: 600;
    min-width: 35px;
    text-align: right;
    color: var(--text-primary);
}

/* Override --secondary-color for meta-prompts page to match challenges page */
:root {
    --secondary-color: #f1f5f9; /* Light gray background for progress bars */
}

.skill-bar-mini {
    background: var(--secondary-color);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    width: 50px;
    flex-shrink: 0;
}

.skill-fill-mini {
    background: var(--primary-color);
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}


.skill-fill-mini[style*="width: 0%"],
.skill-fill-mini[style*="width:0%"] {
    display: none !important;
}

.progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 20px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width var(--transition-slow);
    border-radius: 4px;
}

.progress-message {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0 20px 20px;
}

/* Filter Section */
.filter-section {
    margin-bottom: 24px;
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-align: left;
}

.filter-subgroup {
    margin-bottom: 12px;
    padding-left: 1em;
}

.filter-subgroup:last-child {
    margin-bottom: 0;
}

.filter-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 1em;
}

.filter-option {
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.875rem;
    border: 1px solid var(--border-light);
    display: inline-block;
    text-align: left;
    white-space: nowrap;
    width: auto;
    font-weight: 500;
}

.filter-option i {
    margin-right: 4px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.filter-option:hover {
    background: rgba(255, 97, 86, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-option.active {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.filter-option.active i {
    color: var(--primary-color);
}

.filter-option:hover i {
    color: var(--primary-color);
}

/* Meta-prompt Explanation Section */
.explanation-section {
    margin-bottom: 24px;
}

.explanation-title {
    font-size: 0.875rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.explanation-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
}

.explanation-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Three Elements Section */
.elements-section {
    margin-bottom: 24px;
}

.element-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all var(--transition-fast);
}

.element-item:last-child {
    margin-bottom: 0;
}

.element-item:hover {
    background: rgba(255, 97, 86, 0.05);
    border-color: var(--primary-color);
}

.element-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.element-header i {
    color: var(--primary-color);
    font-size: 1rem;
}

.element-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.element-description p {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.element-challenge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
}

.element-challenge i {
    font-size: 0.875rem;
}

/* Navigation Styles - 統一済み、filter-option を使用 */

/* Knowledge Base Section */
.knowledge-section {
    margin-bottom: 40px;
}

.knowledge-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-light);
}

.knowledge-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.knowledge-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.knowledge-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.knowledge-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.knowledge-title h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.knowledge-content {
    padding: 24px;
}

.knowledge-content p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 1rem;
}

.knowledge-content p:last-child {
    margin-bottom: 0;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.comparison-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
}

.comparison-item h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-item.traditional h4 i {
    color: var(--text-secondary);
}

.comparison-item.meta-prompt h4 i {
    color: var(--primary-color);
}

.comparison-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-item li {
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.4;
}

.comparison-item.traditional li::before {
    content: '−';
    position: absolute;
    left: 0;
    color: var(--error-color);
    font-weight: bold;
}

.comparison-item.meta-prompt li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Techniques Overview */
.techniques-overview {
    margin-top: 16px;
}

.technique-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all var(--transition-fast);
}

.technique-preview:hover {
    background: rgba(255, 97, 86, 0.05);
    border-color: var(--primary-color);
}

.technique-preview:last-child {
    margin-bottom: 0;
}

.technique-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.technique-icon i {
    color: var(--text-inverse);
    font-size: 1.125rem;
}

.technique-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.technique-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Technique Section */
.technique-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.technique-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.technique-icon-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.technique-icon-large i {
    color: var(--text-inverse);
    font-size: 2rem;
}

.technique-meta h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.technique-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.4;
}

.technique-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.technique-explanation h3 {
    margin: 0 0 16px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.technique-explanation p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 1rem;
}

.key-points h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.key-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-points li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
}

.key-points li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
}

/* Learning Header */
.learning-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px 0;
    border-top: 2px solid var(--border-light);
    border-bottom: 2px solid var(--border-light);
}


/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    margin-left: 280px;
    overflow-y: auto;
    min-width: 0;
}

.content-header {
    margin-bottom: 30px;
}

.content-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin: 0 0 8px 0;
}

.content-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Challenges Grid */
.challenges-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Challenge Cards */
.challenge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.challenge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.challenge-header {
    display: flex;
    align-items: center;
    padding: 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.challenge-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: 16px;
    flex-shrink: 0;
}

.challenge-info {
    flex: 1;
}

.challenge-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.challenge-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.challenge-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.challenge-status.completed {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

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

.challenge-status.in-progress {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.challenge-status.in-progress i {
    color: var(--warning-color);
}

/* Challenge Content */
.challenge-content {
    padding: 24px;
}

.challenge-description h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenge-description h4 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.challenge-description p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 1rem;
}

.challenge-description ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.challenge-description li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 1rem;
}

.challenge-description li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
}

/* Workspace */
.challenge-workspace {
    margin-top: 24px;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
}

.workspace-header {
    margin-bottom: 12px;
}

.workspace-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.workspace-header h4 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.workspace-content {
    margin-bottom: 16px;
}

.meta-prompt-input,
.target-prompt-input {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color var(--transition-fast);
    background: var(--bg-card);
    color: var(--text-primary);
}

.meta-prompt-input:focus,
.target-prompt-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 97, 86, 0.1);
}

.meta-prompt-input::placeholder,
.target-prompt-input::placeholder {
    color: var(--text-tertiary);
}

.workspace-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* Execution Results */
.execution-result {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-top: 20px;
    overflow: hidden;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
}

.result-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.result-header h4 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.result-badge {
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--success-color);
}

.result-content {
    padding: 20px;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.result-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: var(--text-inverse);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-filter-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--success-color);
    color: var(--text-inverse);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    min-width: 200px;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
}

.toast-content i {
    font-size: 1rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    min-width: 200px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.loading-spinner {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.loading-content p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 280px;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .technique-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .technique-meta {
        text-align: center;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        width: 280px;
        height: 100vh;
        top: 0;
        padding-top: 100px;
        z-index: 1500;
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease;
        border-right: none;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .content-title {
        font-size: 1.5rem;
    }
    
    .challenge-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .challenge-number {
        margin-right: 0;
    }
    
    .challenge-info {
        text-align: center;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .workspace-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(-100%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 16px;
    }
    
    .challenge-card {
        margin: 0 -4px;
    }
    
    .challenge-content {
        padding: 20px;
    }
    
    .content-title {
        font-size: 1.25rem;
    }
    
    .loading-content {
        margin: 20px;
        padding: 24px;
    }
}

/* Dark mode specific adjustments */
[data-theme="dark"] .challenge-number {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

/* Dark mode for approach comparison */
[data-theme="dark"] .approach-item.traditional {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.15) 0%, rgba(148, 163, 184, 0.1) 100%);
    border-color: #64748b;
}

[data-theme="dark"] .approach-item.unico {
    background: linear-gradient(135deg, rgba(255, 97, 86, 0.15) 0%, rgba(255, 140, 148, 0.1) 100%);
    border-color: var(--primary-color);
}

[data-theme="dark"] .definition-section,
[data-theme="dark"] .skill-section {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .approach-item.traditional .definition-section,
[data-theme="dark"] .approach-item.traditional .skill-section {
    background: rgba(100, 116, 139, 0.1);
}

[data-theme="dark"] .approach-item.unico .definition-section,
[data-theme="dark"] .approach-item.unico .skill-section {
    background: rgba(255, 97, 86, 0.1);
}

[data-theme="dark"] .definition-section h5,
[data-theme="dark"] .skill-section h5 {
    color: var(--text-primary);
}

[data-theme="dark"] .definition-section p,
[data-theme="dark"] .skill-section p {
    color: var(--text-secondary);
}

[data-theme="dark"] .problem-note {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .solution-note {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .key-difference {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

[data-theme="dark"] .key-difference::before {
    background: radial-gradient(circle, rgba(255, 97, 86, 0.1) 0%, transparent 70%);
}

[data-theme="dark"] .step-number-large {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

[data-theme="dark"] .benefit-icon {
    background: var(--bg-card);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .progress-fill {
    background: var(--primary-color);
}

[data-theme="dark"] .element-item:hover {
    background: rgba(255, 140, 158, 0.05);
}

[data-theme="dark"] .meta-prompt-input,
[data-theme="dark"] .target-prompt-input {
    background: var(--bg-card);
    color: var(--text-primary);
}

[data-theme="dark"] .meta-prompt-input::placeholder,
[data-theme="dark"] .target-prompt-input::placeholder {
    color: var(--text-tertiary);
}

/* ===== New Styles for Unico-style Meta-prompts ===== */

/* Approach Comparison Styles */
.approach-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 16px 24px;
    margin: 24px 0;
}

.approach-item {
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    align-content: start;
}

.approach-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
}

.approach-item.traditional {
    border: 2px solid #94a3b8;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.approach-item.traditional::before {
    background: linear-gradient(90deg, #64748b, #94a3b8);
}

.approach-item.unico {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #fff7f6 0%, #ffeeec 100%);
}

.approach-item.unico::before {
    background: linear-gradient(90deg, var(--primary-color), #ff8c94);
}

.approach-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.approach-item.traditional:hover {
    border-color: #64748b;
}

.approach-item.unico:hover {
    border-color: var(--primary-dark);
}

.approach-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
    grid-row: 1;
}

.approach-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.approach-item.traditional .approach-icon {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    color: white;
}

.approach-item.unico .approach-icon {
    background: linear-gradient(135deg, var(--primary-color), #ff8c94);
    color: white;
}

.approach-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.approach-content {
    display: contents;
}

.definition-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 14px;
    border-left: 3px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    grid-row: 2;
}

.skill-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 14px;
    border-left: 3px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    grid-row: 3;
}

.approach-item.traditional .definition-section,
.approach-item.traditional .skill-section {
    border-left-color: #94a3b8;
}

.approach-item.unico .definition-section,
.approach-item.unico .skill-section {
    border-left-color: var(--primary-color);
}

.definition-section h5,
.skill-section h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    flex-shrink: 0;
}

.definition-section p,
.skill-section p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
}

.problem-note,
.solution-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    grid-row: 4;
    align-self: stretch;
}

.problem-note {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.solution-note {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.note-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-content {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.note-content strong {
    font-weight: 600;
}

.key-difference {
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.key-difference::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 97, 86, 0.05) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

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

.key-difference h4 {
    margin: 0 0 12px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.key-difference p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Step Number Styles */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: var(--text-inverse);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 8px;
}

.step-number-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-inverse);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    flex-shrink: 0;
}

/* Process Flow Styles */
.process-flow {
    margin: 20px 0;
}

.process-flow h4 {
    margin-bottom: 20px;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.flow-step:hover {
    background: rgba(255, 97, 86, 0.05);
    border-color: var(--primary-color);
}

.flow-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.flow-content {
    flex: 1;
}

.flow-content strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.flow-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.4;
}

.flow-arrow {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 8px 0;
}

/* Benefits Grid Styles */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.benefit-item:hover {
    background: rgba(255, 97, 86, 0.05);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.benefit-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.benefit-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Problem Solution Styles */
.problem-solution {
    margin: 20px 0;
}

.problem-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.problem-box h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--error-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.problem-box ul {
    list-style: disc;
    padding-left: 20px;
    margin: 12px 0;
}

.problem-box li {
    margin: 6px 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
}

.bad-example {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 12px;
    font-style: italic;
    color: var(--text-secondary);
    margin: 12px 0;
    font-size: 1rem;
}

/* Solution Process Styles */
.solution-process {
    margin: 20px 0;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.process-step .step-number {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    margin-right: 0;
}

.step-detail {
    flex: 1;
}

.step-detail strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.step-detail p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Final Result Styles */
.final-result {
    margin-top: 24px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
}

.final-result h4 {
    margin: 0 0 16px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--success-color);
}

.meta-prompt-result {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 16px;
    white-space: pre-wrap;
}

.variable-highlight {
    background: rgba(255, 97, 86, 0.1);
    color: var(--primary-color);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Example Styles */
.example-box {
    margin: 20px 0;
}

.good-examples {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.example-item {
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.example-item.good {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.example-label {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.example-item.good .example-label {
    background: var(--success-color);
    color: var(--text-inverse);
}

.example-item p {
    margin: 0;
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Format Examples */
.format-examples {
    margin: 20px 0;
}

.format-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.format-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.format-number {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: var(--text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.format-content {
    flex: 1;
}

.format-content h5 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.format-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Abstraction Instruction */
.abstraction-instruction {
    margin: 20px 0;
}

.abstraction-instruction h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.instruction-box {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 4px solid var(--info-color);
    border-radius: 8px;
    padding: 16px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
}

/* Variable Example */
.variable-example {
    margin: 20px 0;
}

.problem-example,
.solution-example {
    margin: 16px 0;
}

.example-code {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.example-code.variable {
    background: rgba(255, 97, 86, 0.05);
    border-color: rgba(255, 97, 86, 0.2);
}

.problem-note,
.solution-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.solution-note {
    color: var(--success-color);
}

/* Generation Flow */
.generation-flow {
    margin: 20px 0;
}

.generation-flow h4 {
    margin-bottom: 20px;
}

.step-icon {
    font-size: 1.25rem;
    margin-right: 8px;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
}

/* Result Example */
.result-example {
    margin: 20px 0;
}

/* YAML Benefits */
.yaml-benefits {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.yaml-benefits h5 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--success-color);
}

.yaml-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yaml-benefits li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
}

.yaml-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1rem;
}

.result-example h4 {
    margin-bottom: 20px;
}

.example-result {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.result-header {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.result-code {
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
}

/* Comparison Examples */
.example-comparison {
    margin: 20px 0;
}

.comparison-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.comparison-item.bad {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 12px 16px;
    border-radius: 6px;
}

.comparison-item.good {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 12px 16px;
    border-radius: 6px;
}

.comparison-label {
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.comparison-item.bad .comparison-label {
    color: var(--error-color);
}

.comparison-item.good .comparison-label {
    color: var(--success-color);
}

.comparison-item p {
    margin: 0;
    font-size: 1rem;
}

.comparison-item .result {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 4px;
}

/* Key Message */
.key-message {
    margin-top: 24px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
}

.key-message h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--info-color);
}

.key-message p {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
}

.key-message p:last-child {
    margin-bottom: 0;
}

/* Summary Section */
.summary-section {
    margin: 40px 0;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

.summary-header {
    text-align: center;
    margin-bottom: 32px;
}

.summary-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.summary-content {
    max-width: 800px;
    margin: 0 auto;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.summary-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.summary-item:hover {
    background: rgba(255, 97, 86, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.summary-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.summary-item h3 {
    margin: 0 0 12px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.next-steps {
    text-align: center;
    padding: 24px;
    background: rgba(255, 97, 86, 0.05);
    border: 1px solid rgba(255, 97, 86, 0.2);
    border-radius: 12px;
}

.next-steps h3 {
    margin: 0 0 16px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.next-steps p {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
}

.next-steps p:last-child {
    margin-bottom: 0;
}

/* Summary Note */
.summary-note {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.summary-note p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

/* Responsive adjustments for new styles */
@media (max-width: 768px) {
    /* Approach comparison responsive */
    .approach-comparison {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .approach-item {
        padding: 20px;
    }
    
    .approach-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .approach-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .approach-header h4 {
        font-size: 1.125rem;
    }
    
    .definition-section,
    .skill-section {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .definition-section h5,
    .skill-section h5 {
        font-size: 1rem;
    }
    
    .definition-section p,
    .skill-section p {
        font-size: 1rem;
    }
    
    .problem-note,
    .solution-note {
        align-items: center;
        gap: 10px;
        padding: 12px;
    }
    
    .note-icon {
        font-size: 1.25rem;
    }
    
    .key-difference {
        padding: 20px;
        margin-top: 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .format-points {
        gap: 12px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .process-step {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .flow-step {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .comparison-items {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .approach-item {
        padding: 16px;
        margin: 0 -4px;
    }
    
    .approach-comparison {
        gap: 12px;
    }
    
    .key-difference {
        padding: 16px;
        margin-top: 16px;
    }
    
    .definition-section,
    .skill-section {
        padding: 8px;
    }
    
    .problem-note,
    .solution-note {
        padding: 10px;
    }
}

/* ===== Optional Step Styles ===== */

/* Optional step container */
.optional-step {
    position: relative;
    opacity: 0.9;
}

.optional-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    pointer-events: none;
}

/* Optional badge */
.optional-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.filter-option .optional-badge {
    margin-left: 8px;
    font-size: 0.875rem;
    padding: 2px 8px;
}

/* Optional step in sidebar */
.filter-option.optional-step {
    border: 1px dashed rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(168, 85, 247, 0.03) 100%);
}

.filter-option.optional-step:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.filter-option.optional-step.active {
    border-color: #8B5CF6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
}

/* Mind Map Benefits Grid */
.mindmap-benefits {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(168, 85, 247, 0.03) 100%);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 12px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
}

.benefit-content h5 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.benefit-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Workflow Steps */
.workflow-steps {
    margin: 24px 0;
}

.workflow-steps .flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

/* Optional Note */
.optional-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 152, 0, 0.03) 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
}

.optional-note .note-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    border-radius: 50%;
    color: white;
}

.note-content h5 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.note-content p {
    margin: 0 0 8px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.note-content p:last-child {
    margin-bottom: 0;
}

/* Visual Workflow Steps */
.flow-steps-visual {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 24px;
}

.flow-step-visual {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.flow-step-visual:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.flow-step-visual .step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.flow-step-visual .step-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.5rem;
}

.flow-step-visual .step-content p {
    font-size: 1.125rem;
    line-height: 1.6;
}

.step-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin: 16px 0;
}

.edit-features {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.edit-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.125rem;
}

.step-note {
    margin-top: 12px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.05);
    border-left: 3px solid #8B5CF6;
    border-radius: 4px;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Responsive adjustments for optional step */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .workflow-steps .flow-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .optional-note {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .step-image {
        margin: 12px -8px;
        width: calc(100% + 16px);
        max-width: calc(100% + 16px);
        border-radius: 4px;
    }
}