/* ============================================
   Styles pour le mode comparaison
   ============================================ */

/* Overlay de comparaison */
.comparison-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.comparison-content {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 24px;
}

/* En-tête */
.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.comparison-header h2 {
    color: var(--primary-color);
    margin: 0;
}

/* Grille de comparaison */
.comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Item de comparaison */
.comparison-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 2px solid transparent;
}

.comparison-item.different {
    border-color: #f56565;
    background: #fff5f5;
}

.comparison-item.identical {
    border-color: #48bb78;
    background: #f0fff4;
}

.comparison-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.comparison-item-header h4 {
    color: var(--text-primary);
    margin: 0;
}

.comparison-status {
    padding: 4px 12px;
    border-radius: 12px;
    color: white;
    font-size: 0.85em;
    font-weight: 600;
}

/* Colonnes de comparaison */
.comparison-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}

.comparison-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.column-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.comparison-arrow {
    font-size: 2em;
    color: var(--text-secondary);
}

/* Boîtes de code */
.code-box {
    background: white;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.code-box.proposed {
    border-left: 4px solid #667eea;
}

.code-box.corrected {
    border-left: 4px solid #48bb78;
}

.code-box.no-correction {
    border-left: 4px solid #cbd5e0;
    opacity: 0.7;
}

.code-value {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.code-label {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.code-confidence {
    font-size: 0.85em;
    color: var(--text-secondary);
}

.correction-comment {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    color: var(--text-primary);
    font-style: italic;
}

/* État vide */
.no-corrections {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.no-corrections .empty-icon {
    font-size: 4em;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-corrections h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-corrections p {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-overlay {
        padding: 12px;
    }
    
    .comparison-content {
        padding: 16px;
    }
    
    .comparison-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .comparison-columns {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
        font-size: 1.5em;
    }
    
    .code-box {
        padding: 12px;
    }
    
    .code-value {
        font-size: 1.1em;
    }
}
