/* Q&A Format Styles for Recent Answers */

.recent-answer-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    cursor: default;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.recent-answer-card:hover {
    border-color: #e5e7eb;
    box-shadow: none;
    transform: none;
}

.qa-content {
    flex: 1;
    margin-right: 1rem;
}

.question-line, .answer-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.answer-line {
    margin-bottom: 0;
}

.qa-label {
    font-weight: 700;
    color: #2E7D32;
    margin-right: 0.75rem;
    min-width: 20px;
    font-size: 1rem;
}

.question-text {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 500;
    line-height: 1.5;
}

.answer-text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Confidence badge - positioned in top right */
.recent-answer-card .confidence-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.confidence-badge.high {
    background: #e8f5e9;
    color: #2e7d32;
}

.confidence-badge.medium {
    background: #fff3e0;
    color: #f57c00;
}

.confidence-badge.low {
    background: #ffebee;
    color: #d32f2f;
}

/* Container */
#recentAnswersList {
    padding: 1.5rem;
    overflow-y: auto;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .qa-content {
        margin-right: 3rem;
    }
    
    .question-text {
        font-size: 0.95rem;
    }
    
    .answer-text {
        font-size: 0.85rem;
    }
}