/* Modal trạng thái MCP endpoint (overlay, dot, tag, spinner) */

/* ===== MODAL ===== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.overlay.show { display: flex; }

.modal {
  background: #14142a;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 26px;
  width: 680px;
  max-width: 92vw;
  max-height: 82vh;
  overflow-y: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title { font-size: 17px; font-weight: 700; }

.btn-close {
  background: none;
  border: none;
  color: #888;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.btn-close:hover { color: #fff; }

.meta-label { font-size: 12px; font-weight: 600; color: #888; margin-bottom: 8px; }

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #55dd55;
}

.dot.offline { background: #dd4444; }
.dot.checking { background: #ddaa00; }

.status-text { font-size: 14px; }

.btn-refresh {
  background: none;
  border: 1px solid #444;
  color: #aaa;
  padding: 4px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.btn-refresh:hover { border-color: #aaa; color: #fff; }

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #1e1e38;
  border: 1px solid #333355;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 12px;
  color: #bbb;
}

.modal-loading {
  text-align: center;
  padding: 32px;
  color: #777;
}

@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 3px solid #333;
  border-top-color: #cc66ff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-bottom: 10px;
}
