select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select::-ms-expand {
  display: none; /* Edge/IE */
}

:root {
  --primary-bg: #0a0a0f;
  --secondary-bg: #131318;
  --accent-cyan: #00d9ff;
  --accent-green: #00ff88;
  --accent-purple: #8b5cf6;
  --text-primary: #ffffff;
  --text-secondary: #a0a0ab;
}

body {
  background: var(--primary-bg);
  color: var(--text-primary);
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.35);
}

.glow-purple {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

.glow-green {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.35);
}

.glass-card {
  background: rgba(19, 19, 24, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gradient-cyber {
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.1) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
}

/* Tab styles for Getting Started page */
.tab-button {
  background: rgba(255, 255, 255, 0.05);
  color: #a0a0ab;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.tab-button.active {
  background: rgba(0, 217, 255, 0.2);
  color: #00d9ff;
  border: 1px solid rgba(0, 217, 255, 0.3);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.integration-card {
  min-height: 260px;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.integration-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 217, 255, 0.35);
  box-shadow: 0 10px 40px rgba(0, 217, 255, 0.06);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(32, 197, 255, 0.2), rgba(108, 75, 255, 0.25));
  border: 1px solid rgba(108, 75, 255, 0.35);
  color: #cdd5ff;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.filter-chip {
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d1d5db;
  font-size: 0.8rem;
  transition: all 150ms ease;
}

.filter-chip:hover {
  border-color: rgba(0, 217, 255, 0.35);
  color: #e0f7ff;
}

.filter-chip.active {
  background: rgba(0, 217, 255, 0.16);
  border-color: rgba(0, 217, 255, 0.45);
  color: #9be8ff;
}

.connect-disabled-button {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.75rem 1.2rem;
  border-radius: 0.75rem;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  text-decoration: none;
}

.connect-disabled-button:hover {
  transform: translateY(-1px);
}

.connect-button {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.75rem 1.2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #00d9ff, #8b5cf6);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 35px rgba(0, 217, 255, 0.25);
  border: none;
  text-decoration: none;
}

.connect-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 45px rgba(0, 217, 255, 0.35);
}

.markdown-body {
  color: #e5e7eb;
  line-height: 1.7;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: #ffffff;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.markdown-body h1 { font-size: 1.6rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 0.4rem; }
.markdown-body h2 { font-size: 1.35rem; }
.markdown-body h3 { font-size: 1.15rem; }
.markdown-body h4 { font-size: 1.05rem; }

.markdown-body p {
  margin-bottom: 0.75rem;
}

.markdown-body a {
  color: #7dd3fc;
  text-decoration: underline;
}

.markdown-body code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.9em;
}

.markdown-body pre code {
  display: block;
  background: linear-gradient(145deg, rgba(0, 217, 255, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 0.8rem 0;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.code-block-wrapper {
  position: relative;
  margin: 0.8rem 0;
}

.code-block-wrapper pre {
  margin: 0;
}

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 150ms ease;
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
}

.code-copy-btn:hover {
  background: rgba(0, 217, 255, 0.18);
  color: #ffffff;
  border-color: rgba(0, 217, 255, 0.45);
}

.code-block-wrapper:hover .code-copy-btn,
.code-block-wrapper:focus-within .code-copy-btn {
  opacity: 1;
  pointer-events: auto;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

.markdown-body ul { list-style: disc; }
.markdown-body ol { list-style: decimal; }

.markdown-body li {
  margin-bottom: 0.35rem;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.markdown-body th, .markdown-body td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.markdown-body th {
  background: rgba(0, 217, 255, 0.08);
  color: #e0f2fe;
  font-weight: 600;
}

.markdown-body tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.markdown-body blockquote {
  margin: 0 0 1rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid #00d9ff;
  background: rgba(0, 217, 255, 0.06);
  color: #cfeafc;
  border-radius: 8px;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Form controls on dark surfaces */
#vendor-select,
form select,
form input,
form textarea {
  background-color: #0f1117;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#vendor-select:focus,
form select:focus,
form input:focus,
form textarea:focus {
  border-color: rgba(0, 217, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.12);
  outline: none;
}

.btn-pulse {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(0, 217, 255, 0.35);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.35);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(0, 217, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 217, 255, 0);
  }
}