:root {
  --bg-gradient: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(13, 202, 240, 0.4);
  --main-text: #f0f0f0;
  --accent: #0dcaf0;
  --font: "Fira Code", monospace;
  --glass-blur: blur(15px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg-gradient);
  background-size: 400% 400%;
  animation: bgFade 15s ease infinite;
  color: var(--main-text);
  line-height: 1.6;
  min-height: 100vh;
  padding: 0 10px;
}

@keyframes bgFade {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.wrapper {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #0dcaf0, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  color: #ccc;
  margin-bottom: 2rem;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  backdrop-filter: var(--glass-blur);
}

.input-group input {
  flex: 1;
  font-family: var(--font);
  font-size: 1rem;
  padding: 14px 18px;
  border: 2px solid transparent;
  border-radius: 12px;
  background-color: var(--card-bg);
  color: var(--main-text);
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 5px rgba(255,255,255,0.1);
}

.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.input-group button {
  background-color: var(--accent);
  color: #000;
  font-weight: bold;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(13, 202, 240, 0.4);
  transition: all 0.25s ease;
}

.input-group button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(13, 202, 240, 0.6);
}

.input-group button:active {
  transform: translateY(1px);
}

.status {
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 1rem;
  font-style: italic;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-glow);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(13, 202, 240, 0.3);
}

.card h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 12px;
  word-break: break-word;
}

.card pre {
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #e0e0e0;
}

footer {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin: 3rem 0 1rem;
}

/* Responsive for mobile */
@media (max-width: 600px) {
  .input-group {
    flex-direction: column;
  }

  .input-group input,
  .input-group button {
    width: 100%;
  }
} 

.card ol {
  list-style: none;
  counter-reset: line-number;
  padding: 0;
  margin: 0.5rem 0;
}

.copy-btn {
  background: rgba(13, 202, 240, 0.1);
  border: 1px solid rgba(13, 202, 240, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  color: #0dcaf0;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 255, 255, 0.05);
}

.copy-btn:hover {
  background: rgba(13, 202, 240, 0.2);
  border-color: rgba(13,202,240,0.5);
  color: #fff;
  box-shadow: 0 0 10px rgba(13, 202, 240, 0.4);
  transform: scale(1.05);
}

.copy-btn:active {
  transform: scale(0.95);
  box-shadow: none;
}

.copy-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

/* Success flash animation */
.copy-btn.copied {
  background: rgba(0, 255, 150, 0.2);
  border-color: rgba(0, 255, 150, 0.6);
  color: #75ffaa;
  box-shadow: 0 0 12px rgba(0, 255, 150, 0.5);
}

.export-actions {
  display: flex;
  gap: 12px;
  margin: 30px 0 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
}

.export-actions button {
  background: rgba(13, 202, 240, 0.1);
  border: 1px solid rgba(13, 202, 240, 0.4);
  color: #0dcaf0;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.export-actions button:hover {
  background: rgba(13, 202, 240, 0.25);
  color: white;
  box-shadow: 0 0 16px rgba(13, 202, 240, 0.5);
  transform: translateY(-2px);
}

.export-actions button:active {
  transform: scale(0.96);
  box-shadow: none;
}

.card ol li {
  counter-increment: line-number;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
  line-height: 1.4;
  color: #d8ffe9;
  word-break: break-word;
  position: relative;
  padding-left: 32px; /* Reserve space for number */
}

.card ol li::before {
  content: counter(line-number);
  position: absolute;
  left: 0;
  color: #6fbff0; /* Subtle neon-blue like VSCode */
  font-size: 0.9rem;
  user-select: none;
  opacity: 0.6;
  text-align: right;
  min-width: 24px;
}

.endpoint-text {
  flex-grow: 1;
  user-select: text;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 12px rgba(13, 202, 240, 0.3);
}

#filter-section {
  margin: 20px 0 10px;
  display: flex;
  justify-content: flex-start;
}

#filterInput {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(13, 202, 240, 0.4);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: #fff;
  width: 100%;
  max-width: 400px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: 0.3s ease;
}

#filterInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(13, 202, 240, 0.3);
}

footer a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

.tagline {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 5px;
  opacity: 0.8;
  font-style: italic;
}