/* Code Widget for Multi-Language Tabs */
.code-widget {
  background: #1e1e1e; /* Match code block bg */
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #333;
}

.code-widget-header {
  display: flex;
  background: #2d2d2d;
  border-bottom: 1px solid #404040;
  padding: 0 1rem;
}

.code-tab-btn {
  background: transparent;
  border: none;
  color: #888;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.code-tab-btn:hover {
  color: #ccc;
}

.code-tab-btn.active {
  color: #fff;
  border-bottom-color: #61dafb; /* React Blue / Accent Color */
}

/* Hide the individual code block labels inside the widget */
.code-widget .code-block .code-label {
  display: none;
}

.code-widget .code-block {
  margin: 0;
  border-radius: 0;
}
