/* ============================================
   Styles pour le panneau des codes
   ============================================ */

/* Indicateur de complétude */
.completeness-indicator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.completeness-label {
    font-size: 0.9em;
    margin-bottom: 8px;
    opacity: 0.9;
}

.completeness-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.completeness-fill {
    background: white;
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.completeness-value {
    font-size: 1.2em;
    font-weight: 600;
    text-align: right;
}

/* Items de code */
.code-item {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.code-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #f0f4ff;
}

.code-item.selected {
    background: #e6f0ff;
    border-left-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.code-title {
    font-weight: bold;
    font-size: 1.1em;
    color: #2d3748;
}

.code-label {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.code-reasoning {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 8px 10px;
    margin: 8px 0;
    border-radius: 4px;
    font-size: 0.85em;
    color: #856404;
    font-style: italic;
}

.code-evidence-preview {
    background: #e7f3ff;
    border-left: 3px solid #2196f3;
    padding: 8px 10px;
    margin: 8px 0;
    border-radius: 4px;
    font-size: 0.85em;
    color: #0d47a1;
    font-style: italic;
}

.code-evidence-count {
    color: #718096;
    font-size: 0.85em;
    margin-top: 8px;
}

/* Section des filtres */
.filters-section {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
}

.filter-group {
    margin-bottom: 12px;
}

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

.filter-label {
    display: block;
    font-weight: 600;
    font-size: 0.9em;
    color: #2d3748;
    margin-bottom: 6px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85em;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    cursor: pointer;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85em;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .code-item {
        padding: 12px;
    }
    
    .code-title {
        font-size: 1em;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 6px;
    }
}
