/* ========================================
 * CLI Settings Section
 * ======================================== */

.cli-settings-section {
  /* No card wrapper - just title and cards */
}

.cli-settings-section .section-header {
  padding: 0 0 0.75rem 0;
  border-bottom: none;
  background: transparent;
}

.cli-settings-section .section-header h3 {
  font-size: 0.9375rem;
}

.cli-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 1200px) {
  .cli-settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cli-settings-grid {
    grid-template-columns: 1fr;
  }
}

.cli-setting-item {
  padding: 0.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  min-height: 90px;
}

.cli-setting-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.5rem;
}

.cli-setting-label i {
  color: hsl(var(--primary));
  width: 12px;
  height: 12px;
}

.cli-setting-control {
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.cli-setting-select {
  width: 100%;
  padding: 0.4375rem 0.5rem;
  font-size: 0.8125rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.15s ease;
}

.cli-setting-select:hover {
  border-color: hsl(var(--primary) / 0.5);
}

.cli-setting-select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.1);
}

.cli-setting-desc {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.3;
  margin-top: auto;
}

.cli-setting-value {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  font-weight: 500;
}

/* Toggle Switch */
.cli-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.cli-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cli-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: hsl(var(--muted));
  transition: 0.3s;
  border-radius: 20px;
}

.cli-toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cli-toggle input:checked + .cli-toggle-slider {
  background-color: hsl(var(--primary));
}

.cli-toggle input:checked + .cli-toggle-slider:before {
  transform: translateX(16px);
}

.cli-toggle input:focus + .cli-toggle-slider {
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

/* Disabled state for settings */
.cli-setting-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Code Index MCP Toggle Buttons */
.code-mcp-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  color: hsl(var(--muted-foreground));
}

.code-mcp-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.5);
}

.code-mcp-btn.active,
.code-mcp-btn[class*="bg-primary"] {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.code-mcp-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: hsl(var(--muted));
  border-radius: 0.5rem;
  padding: 0.125rem;
}

