/**
 * 审核面板 - 历史反馈 AI 总结弹窗样式（独立：review-feedback-ai-recap-*，不与其他面板共用）
 * 深色主题；弹窗置于最顶层（z-index: 10500）
 * 字体：Microsoft YaHei，符合《字体规格规范》
 */

.review-feedback-ai-recap-modal {
    position: fixed;
    inset: 0;
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s ease, opacity 0.2s ease;
}

.review-feedback-ai-recap-modal.review-feedback-ai-recap-modal--open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.review-feedback-ai-recap-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
}

.review-feedback-ai-recap-dialog {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #2b2d31;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    border: 1px solid #3d3f44;
}

.review-feedback-ai-recap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #3d3f44;
    flex-shrink: 0;
}

.review-feedback-ai-recap-title {
    margin: 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #e8e8e8;
    line-height: 1.2;
}

.review-feedback-ai-recap-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #a0a0a0;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.review-feedback-ai-recap-close:hover {
    background: #3d3f44;
    color: #e8e8e8;
}

.review-feedback-ai-recap-toolbar {
    padding: 12px 16px;
    border-bottom: 1px solid #3d3f44;
    flex-shrink: 0;
}

.review-feedback-ai-recap-model-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.review-feedback-ai-recap-label {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 12px;
    color: #b0b0b0;
    white-space: nowrap;
}

.review-feedback-ai-recap-select {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 13px;
    min-width: 200px;
    padding: 6px 10px;
    border: 1px solid #4a4c52;
    border-radius: 4px;
    background: #1e2023;
    color: #e8e8e8;
    cursor: pointer;
}

.review-feedback-ai-recap-select:focus {
    border-color: #4a9eff;
    outline: none;
}

.review-feedback-ai-recap-select:disabled {
    background: #25262a;
    color: #707070;
    cursor: not-allowed;
}

.review-feedback-ai-recap-summarize-btn,
.review-feedback-ai-recap-submit-btn {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 13px;
    font-weight: normal;
    padding: 6px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.review-feedback-ai-recap-summarize-btn {
    margin-left: auto;
    background: #4a9eff;
    color: #fff;
    border-color: #4a9eff;
}

.review-feedback-ai-recap-summarize-btn:hover:not(:disabled) {
    background: #3a8eef;
    border-color: #3a8eef;
}

.review-feedback-ai-recap-summarize-btn:disabled {
    background: #3d3f44;
    color: #707070;
    border-color: #3d3f44;
    cursor: not-allowed;
}

.review-feedback-ai-recap-summarize-btn.review-feedback-ai-recap-summarize-btn--loading {
    pointer-events: none;
    opacity: 0.8;
}

.review-feedback-ai-recap-submit-btn {
    background: transparent;
    color: #4a9eff;
    border-color: #4a9eff;
}

.review-feedback-ai-recap-submit-btn:hover:not(:disabled) {
    background: rgba(74, 158, 255, 0.15);
}

.review-feedback-ai-recap-submit-btn:disabled {
    color: #707070;
    border-color: #3d3f44;
    cursor: not-allowed;
}

.review-feedback-ai-recap-body {
    flex: 1;
    min-height: 0;
    padding: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.review-feedback-ai-recap-result-wrap {
    flex: 1;
    min-height: 200px;
    position: relative;
}

.review-feedback-ai-recap-result {
    width: 100%;
    height: 100%;
    min-height: 280px;
    padding: 12px;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #e8e8e8;
    background: #1e2023;
    border: 1px solid #4a4c52;
    border-radius: 4px;
    resize: vertical;
    display: block;
}

.review-feedback-ai-recap-result:focus {
    border-color: #4a9eff;
    outline: none;
}

.review-feedback-ai-recap-result::placeholder {
    color: #707070;
}

/* 深色滚动条（仅本弹窗结果区，不与其他面板共用） */
.review-feedback-ai-recap-result {
    scrollbar-width: thin;
    scrollbar-color: #4a4c52 #1e2023;
}
.review-feedback-ai-recap-result::-webkit-scrollbar {
    width: 8px;
}
.review-feedback-ai-recap-result::-webkit-scrollbar-track {
    background: #1e2023;
}
.review-feedback-ai-recap-result::-webkit-scrollbar-thumb {
    background: #4a4c52;
    border-radius: 4px;
}
.review-feedback-ai-recap-result::-webkit-scrollbar-thumb:hover {
    background: #5a5c62;
}

.review-feedback-ai-recap-streaming-indicator {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 11px;
    color: #4a9eff;
}

.review-feedback-ai-recap-modal--open .review-feedback-ai-recap-dialog {
    animation: review-feedback-ai-recap-dialog-in 0.2s ease;
}

@keyframes review-feedback-ai-recap-dialog-in {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
