.reccircle {
  border-radius: 50vh;
}

.small-dot {
  width: 10px;
  height: 10px;
  background-color: red;
}

.chinese {
  font-family: 'Raleway', 'Noto Sans SC', 'Arial', sans-serif;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.xterm-viewport::-webkit-scrollbar-track {
  border-radius: 10px;
  background: rgba(0,0,0,0.1);
}

.xterm-viewport::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(0,0,0,0.2);
}

.xterm-viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.4);
}

.xterm-viewport::-webkit-scrollbar-thumb:active {
  background: rgba(0,0,0,.9);
}

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

#restart-icon {
  animation-name: rotate;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

#restart-btn {
  cursor: pointer;
}

#modal-data-box {
  background-color: #eef2f7;
  border-radius: 8px;
}
.btn-minor {
  border-radius: 6px;
}
.cursor-pointer {
  cursor: pointer;
}
.copy-tooltip {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 9999;
  animation: fadeIn 0.2s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.config-page {
  background: #f5f7fb;
}

.config-shell {
  min-height: calc(100vh - 190px);
}

.config-container {
  max-width: 1180px;
}

.config-topbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.config-actions {
  display: flex;
  gap: 10px;
}

.config-tabs {
  background: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  gap: 4px;
  padding: 6px;
}

.config-tabs .nav-link {
  border-radius: 6px;
  color: #334155;
  font-weight: 600;
}

.config-tabs .nav-link.active {
  background: #0f766e;
}

.config-tab-content {
  margin-top: 16px;
}

.config-panel {
  background: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 20px;
}

.config-panel-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.config-panel h1 {
  color: #172033;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

.config-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.config-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.config-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.config-list {
  display: grid;
  gap: 12px;
}

.config-item {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 16px;
}

.config-item-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.config-item-title {
  color: #263244;
  font-weight: 700;
}

.config-item-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.config-empty {
  align-items: center;
  border: 1px dashed #c7d2df;
  border-radius: 8px;
  color: #64748b;
  display: flex;
  min-height: 72px;
  padding: 18px;
}

.site-picker {
  display: grid;
  gap: 12px;
}

.site-picker-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.site-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.site-chip {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #14532d;
  display: inline-flex;
  font-size: 0.9rem;
  gap: 6px;
  line-height: 1;
  padding: 8px 10px;
}

.site-chip button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 18px;
}

.switch-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-label {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
}

.form-control,
.form-select {
  border-color: #d3dce8;
  border-radius: 7px;
}

.form-check-input:checked {
  background-color: #0f766e;
  border-color: #0f766e;
}

.config-panel-editor {
  height: 68vh;
  padding: 0;
}

#toml-box {
  height: 100%;
  width: 100%;
}

.CodeMirror {
  border-radius: 8px;
  font-family: var(--bs-font-monospace);
  font-size: 15px;
  height: 100%;
  width: 100%;
}

.CodeMirror-overlayscroll-horizontal div,
.CodeMirror-overlayscroll-vertical div {
  background: rgba(15, 23, 42, 0.22);
  border-radius: 10px;
  width: 7px;
}

.CodeMirror-overlayscroll-horizontal,
.CodeMirror-overlayscroll-vertical {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  width: 7px;
}

@media (max-width: 991.98px) {
  .config-grid,
  .config-grid.two,
  .config-grid.three,
  .switch-grid,
  .site-picker-controls {
    grid-template-columns: 1fr;
  }

  .config-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .config-actions {
    justify-content: flex-end;
  }
}
