/* 질문/답변 보기 모달 스타일 */
.qna-view-modal .modal-dialog {
    max-width: 800px;
}

.qna-view-modal .modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.question-section {
    border-bottom: 2px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.question-header {
    margin-bottom: 1rem;
}

.question-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.question-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-line;
}

.answer-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.answer-meta {
    margin-bottom: 0.5rem;
}

.answer-content {
    color: #333;
    line-height: 1.5;
    white-space: pre-line;
}

.answer-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.answer-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* 관리자 답변 강조 */
.answer-item.admin-answer {
    background-color: #e8f4ff;
    border-left: 4px solid #0d6efd;
}

/* 수정/삭제 버튼 스타일 */
.question-actions, .answer-actions {
    opacity: 0.8;
    transition: opacity 0.2s;
}

.question-actions:hover, .answer-actions:hover {
    opacity: 1;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .qna-view-modal .modal-dialog {
        margin: 0.5rem;
    }

    .answer-item {
        padding: 1rem;
    }

    .answer-actions {
        margin-top: 0.5rem;
    }
}
