@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
  --bg: #0a0f1f;
  --bg-alt: #131b33;
  --accent: #6ee7b7;
  --accent-dark: #1f9d77;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --card: #10162c;
  --border: rgba(110, 231, 183, 0.25);
  --shadow: rgba(15, 23, 42, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #1f2a44, var(--bg));
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: rgba(8, 12, 24, 0.9);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(110, 231, 183, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a,
.nav-links .link-button {
  color: var(--muted);
  font-weight: 600;
}

.nav-links .user {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.link-button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.page {
  padding: 3rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow);
}

.hero-card ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0b151f;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(110, 231, 183, 0.25);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.card,
.panel {
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
}

textarea.editor {
  min-height: 320px;
}

.files-list {
  display: grid;
  gap: 1rem;
}

.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(110, 231, 183, 0.15);
}

.file-id {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.file-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.status {
  margin-top: 1rem;
  color: var(--muted);
}

.error {
  color: #f87171;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.field-block {
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .page {
    padding: 1.5rem;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
