/* Styles pour l'évaluation RAGAS */
.ragas-evaluation-report {
    background: linear-gradient(135deg, #3B4757 0%, #2C3E50 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: white;
}

/* Titre principal en blanc */
.ragas-evaluation-report h3 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

/* Sous-titres en blanc */
.ragas-evaluation-report h4 {
    color: white;
}

.ragas-score-main {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 20px 0;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    color: #333;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;     /* Assure le centrage du texte */
    line-height: 1.2;       /* Ajuste l'espacement des lignes */
}

/* Pour le nombre du score */
.score-number {
    font-size: 24px;
    line-height: 1;
}

/* Pour le texte en dessous */
.score-label {
    font-size: 12px;
    margin-top: 4px;
}

.score-circle.excellent { 
    border: 3px solid #4CAF50; 
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.score-circle.good { 
    border: 3px solid #FFC107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.score-circle.poor { 
    border: 3px solid #F44336;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
}

.confidence-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.confidence-badge.high { background: #4CAF50; }
.confidence-badge.medium { background: #FFC107; color: #333; }
.confidence-badge.low { background: #F44336; }

.ragas-metrics-grid {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.metric-bar {
    display: grid;
    grid-template-columns: 180px 1fr 60px;
    align-items: center;
    gap: 10px;
}

.metric-label {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.metric-progress {
    height: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.metric-value {
    text-align: right;
    font-weight: bold;
}

.ragas-warnings,
.ragas-suggestions {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.ragas-warnings h4,
.ragas-suggestions h4 {
    margin: 0 0 10px 0;
}

.ragas-warnings ul,
.ragas-suggestions ul {
    margin: 0;
    padding-left: 20px;
}

.ragas-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ragas-actions button {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.ragas-actions button:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.ragas-eval-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.ragas-eval-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ragas-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.indicator-value.high { color: #4CAF50; }
.indicator-value.medium { color: #FFC107; }
.indicator-value.low { color: #F44336; }

.ragas-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ragas-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ragas-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.ragas-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.ragas-modal-body {
    padding: 20px;
}