/* Styles spécifiques pour l'administration du chat */

/* ============================================
   STATISTIQUES DU CHAT - stats.html.twig
   ============================================ */

.stats-chart-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.stats-chart-container h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.percentage-bar {
    background: #f8f9fa;
    border-radius: 12px;
    height: 24px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, #007aff, #28a745);
    transition: width 0.5s ease;
    border-radius: 11px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.stat-row-label {
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-row-value {
    font-weight: 700;
    color: #007aff;
    font-size: 1.1rem;
}

/* ============================================
   DÉTAIL CONVERSATION - thread_show.html.twig
   ============================================ */

.chat-messages-container {
    max-height: 600px;
    overflow-y: auto;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.chat-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.chat-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chat-message.user {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8faff 100%);
    border-color: #007aff;
    margin-left: 2rem;
}

.chat-message.assistant {
    background: linear-gradient(135deg, #d4edda 0%, #f8fff9 100%);
    border-color: #28a745;
    margin-right: 2rem;
}

.chat-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.chat-message-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-message.user .chat-message-role {
    background: #007aff;
    color: white;
}

.chat-message.assistant .chat-message-role {
    background: #28a745;
    color: white;
}

.chat-message-content {
    line-height: 1.6;
    color: #2c3e50;
}

.chat-message.assistant .chat-message-content * {
    font-size: 1rem !important;
    line-height: 1.4;
}