/* /mcp — verbatim copy of programs-page.module.css's structural
   rules (.view / .topbar / .title / .toolbar / .body / .content /
   nav rows / .empty) so the page sits at the same heights, uses
   the same border/text/hover variables, and reads visually
   identical to /functions. Class names renamed only where the
   programs version was domain-specific (folders → servers). */

.view {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  height: 64px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  flex-shrink: 0;
}

.body {
  flex: 1;
  display: grid;
  grid-template-columns: calc(var(--sidebar-width) - 1px) 1fr;
  padding: 0;
  min-height: 0;
  overflow: hidden;
}

.content {
  min-width: 0;
  overflow-y: auto;
  padding: 16px 24px 24px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-bottom: 2px;
}

/* Servers nav — pixel-for-pixel match for programs-page.foldersNav */
.serversNav {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-self: stretch;
  position: sticky;
  top: 0;
  padding: 8px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
}

.navSep {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.serverItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  height: 32px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--nav-color);
  border-radius: var(--ui-list-radius);
  transition: background 150ms ease-out, color 150ms ease-out;
  white-space: nowrap;
}
.serverItem:hover {
  background: var(--bg-hover);
  color: var(--nav-color-hover);
}
.serverItem.active {
  background: var(--bg-hover);
  color: var(--nav-color-hover);
}

.serverDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dotReady    { background: var(--accent-green, #18a96b); }
.dotError    { background: var(--accent-red, #ef4444); }
.dotDisabled { background: var(--text-muted); }
.dotStarting { background: var(--accent-yellow, #eab308); }

.serverName {
  flex: 1;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.serverCount {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 1px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}

.navAddItem {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
}
.navAddItem:hover {
  color: var(--text-primary);
  font-style: normal;
}

/* Action button — mirrors welcome-screen.module.css .example so
   action rows on /mcp read with the same weight as the welcome
   tile buttons elsewhere in the app. */
.actionBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.actionBtn:hover:not(:disabled) {
  border-color: transparent;
  background: var(--bg-hover-contrast, var(--bg-hover));
  color: var(--text-bright);
}
.actionBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.actionBtnDanger {
  color: var(--accent-red);
}
.actionBtnDanger:hover:not(:disabled) {
  color: var(--text-bright);
  background: var(--accent-red);
  border-color: transparent;
}
.actionBtnPrimary {
  color: var(--accent-blue);
}
.actionBtnPrimary:hover:not(:disabled) {
  color: #fff;
  background: var(--accent-blue);
  border-color: transparent;
}

/* Empty state in the content pane (no server selected, etc.) */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.emptyIcon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.emptyText {
  font-size: 14px;
}
