/* Code tabs widget: Rust, Java, C#, etc. */
.code-tabs {
  margin: 1em 0;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  overflow: hidden;
}

.code-tabs .code-tabs-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 6px 0 6px;
  margin: 0;
  list-style: none;
  background: #e0e0e0;
  border-bottom: none;
}

.code-tabs .code-tabs-labels li {
  margin: 0;
}

.code-tabs .code-tabs-labels button {
  padding: 0.5em 1.2em;
  margin: 0;
  border: 1px solid #bbb;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 500;
  color: #555;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.code-tabs .code-tabs-labels button:hover {
  background: linear-gradient(to bottom, #fff, #f0f0f0);
  border-color: #999;
  color: #1a73e8;
}

.code-tabs .code-tabs-labels button.active {
  font-weight: 600;
  background: #fff;
  border-color: #1a73e8;
  border-top-width: 2px;
  color: #1a73e8;
  box-shadow: 0 2px 0 #fff;
  position: relative;
  z-index: 1;
}

.code-tabs .tab-panel {
  display: none;
  margin: 0;
}

.code-tabs .tab-panel.active {
  display: block;
}

.code-tabs .tab-panel pre {
  margin: 0;
  border-radius: 0;
  border: none;
}

.code-tabs .tab-panel pre code {
  padding: 1em;
}

/* Hide unwanted themes from the theme selector (keep only Light and Rust) */
#theme-list #auto,
#theme-list #coal,
#theme-list #navy,
#theme-list #ayu,
#theme-list button#auto,
#theme-list button#coal,
#theme-list button#navy,
#theme-list button#ayu,
#theme-list li#auto,
#theme-list li#coal,
#theme-list li#navy,
#theme-list li#ayu,
.theme-popup #auto,
.theme-popup #coal,
.theme-popup #navy,
.theme-popup #ayu,
.theme-popup button#auto,
.theme-popup button#coal,
.theme-popup button#navy,
.theme-popup button#ayu {
  display: none !important;
}