.preview-section {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.file-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.editor-panel,
.info-panel,
.stats-panel {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: between;
    align-items: center;
    background: var(--light-color);
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0;
}

.editor-tools {
    display: flex;
    gap: 0.5rem;
}

.panel-body {
    padding: 1.5rem;
}

.editor-textarea {
    width: 100%;
    min-height: 500px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    resize: vertical;
    background: #fafafa;
}

.editor-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.changes-list {
    max-height: 400px;
    overflow-y: auto;
}

.change-item {
    background: var(--light-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.change-item:hover {
    background: #f0f7ff;
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.change-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.occurrence-count {
    font-size: 0.75rem;
    color: var(--secondary-color);
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.change-content {
    font-size: 0.875rem;
}

.original-text,
.anonymized-text {
    margin-bottom: 0.5rem;
}

.original-text {
    background: #fef2f2;
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--danger-color);
}

.anonymized-text {
    background: #f0fdf4;
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--success-color);
}

.label {
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.text-content {
    margin-top: 0.25rem;
    font-family: monospace;
}

.empty-changes {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
}

.empty-changes i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.breakdown-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.entity-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.entity-item:last-child {
    border-bottom: none;
}

.entity-name {
    font-size: 0.875rem;
    color: var(--dark-color);
}

.entity-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .section-header .d-flex {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .editor-textarea {
        min-height: 300px;
        font-size: 12px;
        padding: 1rem;
    }
    
    .changes-list {
        max-height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-header,
    .panel-body {
        padding: 1rem;
    }
    
    .file-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}