/* Base & Theme */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #000000 0%, #121212 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  overflow-x: hidden;
}

/* Navbar */
nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 900px;
  background: rgba(255 255 255 / 0.1);
  backdrop-filter: blur(12px);
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
  display: flex;
  justify-content: center;
  padding: 0.5rem 2rem;
  z-index: 999;
}

/* Nav link */
.nav-link {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.nav-link:hover,
.nav-link:focus {
  background-color: rgba(255 255 255 / 0.2);
  box-shadow: 0 0 12px #ef4444;
  outline: none;
}

/* Main content */
main {
  width: 100%;
  max-width: 900px;
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Heading */
h1 {
  font-weight: 700;
  font-size: 2.5rem;
  color: #ef4444;
  text-align: center;
  margin: 0;
}

/* Tabs container */
.tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons - same style as nav link */
.tab-btn,
.copy-btn {
  background-color: transparent;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
}

.tab-btn:hover,
.copy-btn:hover,
.tab-btn:focus,
.copy-btn:focus {
  background-color: rgba(255 255 255 / 0.2);
  box-shadow: 0 0 12px #ef4444;
  outline: none;
}

/* Active tab style */
.tab-btn.active {
  background-color: #ef4444;
  color: white;
  box-shadow: 0 0 12px #ef4444;
}

/* Content box */
.content-box {
  width: 100%;
  height: 70vh;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #ef4444;
  border-radius: 1rem;
  padding: 1rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 0 12px #ef4444aa;
  font-family: monospace, monospace;
  font-size: 0.85rem;
}

/* Source note */
.source-note {
  font-size: 0.85rem;
  color: #fca5a5;
  text-align: center;
  user-select: none;
}

.source-note a {
  color: #f87171;
  text-decoration: underline;
}
