:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --accent: #1fb6ff;
  --text: #1f2933;
  --muted: #52606d;
}

body {
  margin: 0;
  background: radial-gradient(circle at 12% 20%, #f3f7ff 0, #eef2f7 38%, #e6edf5 80%);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  padding-bottom: 80px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.bubble {
  background: linear-gradient(135deg, #ffffff, #f7f9fc);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.bubble.user {
  background: linear-gradient(135deg, #e9f7ff, #f5fbff);
  border-color: rgba(31, 182, 255, 0.35);
}

.prompt-card:hover {
  transform: translateY(-2px);
  transition: transform 120ms ease;
}

.status-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1f2937, #111827);
  border-top: 2px solid rgba(31, 182, 255, 0.3);
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.status-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(31, 182, 255, 0.4);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.status-indicator.up {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-indicator.down {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.status-indicator.skip {
  background: #6b7280;
  box-shadow: 0 0 4px #6b7280;
}

.status-indicator.checking {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.dialog-selects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.dialog-select {
  min-width: 160px;
}

.mcp-tools-inline {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(229, 231, 235, 0.9);
}

.mcp-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(229, 231, 235, 0.9);
  max-width: 260px;
}

.mcp-tool-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.35);
}

.mcp-dot.up {
  background: #22c55e;
}

.mcp-dot.down {
  background: #ef4444;
}

.html-preview {
  margin-top: 10px;
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(31, 182, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(31, 182, 255, 0.15);
  max-height: 60vh;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
}

.html-preview::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.html-preview::-webkit-scrollbar-thumb {
  background: rgba(31, 182, 255, 0.35);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.html-preview::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.06);
  border-radius: 999px;
}

.MuiDialog-paper {
  width: fit-content !important;
  max-width: 95% !important;
}
