/* Phase 2: 文献选择器样式 */

.doc-selector-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.doc-selector-modal {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.doc-selector-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.doc-selector-title {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  margin: 0;
}

.doc-selector-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 24px;
  color: #8c8c8c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.doc-selector-close:hover {
  background: #e8e8e8;
  color: #262626;
}

.doc-selector-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.doc-selector-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.doc-selector-item:hover:not(.disabled) {
  border-color: #1890ff;
  background: #f0f8ff;
}

.doc-selector-item.selected {
  border-color: #1890ff;
  background: #e6f7ff;
}

.doc-selector-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.doc-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-filename {
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-meta {
  font-size: 12px;
  color: #8c8c8c;
}

.doc-selector-footer {
  padding: 16px 24px;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
}

.doc-selector-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-label {
  font-size: 13px;
  color: #595959;
}

.stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #262626;
  font-family: 'Monaco', 'Menlo', monospace;
}

.doc-selector-actions {
  display: flex;
  gap: 12px;
}

.btn-cancel,
.btn-confirm {
  flex: 1;
  height: 40px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-cancel {
  background: #fff;
  border: 1px solid #d9d9d9;
  color: #262626;
}

.btn-cancel:hover {
  border-color: #40a9ff;
  color: #40a9ff;
}

.btn-confirm {
  background: #1890ff;
  color: #fff;
}

.btn-confirm:hover:not(.disabled) {
  background: #40a9ff;
}

.btn-confirm.disabled {
  background: #d9d9d9;
  cursor: not-allowed;
}






