/* ===== LLM 모델 탭 ===== */

.llm-model-current {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.llm-model-current-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.llm-model-current-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.llm-model-current-source {
  font-size: 12px;
  color: var(--text-muted);
}

/* 외부 sidecar 경고 */
.llm-external-sidecars {
  margin-bottom: 16px;
}

.llm-sidecar-warning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--bg-warning, #fff8e1);
  border: 1px solid var(--border-warning, #ffe082);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.llm-sidecar-warning:last-child {
  margin-bottom: 0;
}

.llm-sidecar-warning-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.llm-sidecar-kill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  font-size: 12px;
  font-family: monospace;
  color: var(--text-primary);
  white-space: nowrap;
}

.llm-sidecar-hint {
  color: var(--text-muted);
  font-size: 12px;
}

/* 모델 섹션 */
.llm-model-section {
  margin-bottom: 16px;
}

.llm-model-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.llm-model-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.llm-model-list--disabled {
  opacity: 0.5;
  pointer-events: none;
}

.llm-model-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}

/* 모델 아이템 (라디오 레이블) */
.llm-model-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 13px;
  color: var(--text-primary);
}

.llm-model-item:hover {
  border-color: var(--accent, #6c63ff);
  background: var(--bg-hover, var(--bg-secondary));
}

.llm-model-item--active {
  border-color: var(--accent, #6c63ff);
  background: var(--bg-accent-subtle, var(--bg-secondary));
}

.llm-model-item--incompatible {
  cursor: default;
  background: var(--bg-secondary);
}

.llm-model-item input[type="radio"] {
  flex-shrink: 0;
  accent-color: var(--accent, #6c63ff);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.llm-model-item--incompatible input[type="radio"] {
  cursor: default;
}

.llm-model-item-name {
  flex: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.llm-model-item-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--accent, #6c63ff);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  flex-shrink: 0;
}

.llm-model-item-reason {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 액션 바 */
.llm-model-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.llm-model-force {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.llm-model-force input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent, #6c63ff);
  cursor: pointer;
  flex-shrink: 0;
}

/* 진행 상태 */
.llm-model-progress {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.llm-model-progress-stage {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.llm-model-progress-message {
  font-size: 13px;
  color: var(--text-secondary);
}

.llm-model-progress-elapsed {
  font-size: 12px;
  color: var(--text-muted);
}
