/* SheetCraft design tokens — dark theme with lime accent */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #0c0c0e;
  --bg-elevated: #141418;
  --bg-card: #1a1a20;
  --fg: #e8e6e1;
  --fg-muted: #8a8880;
  --fg-dim: #5a5850;
  --accent: #c8ff73;
  --accent-dim: rgba(200, 255, 115, 0.12);
  --accent-hover: #d8ff8e;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(200, 255, 115, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0c0c0e;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  padding: 8px 16px;
  font-size: 14px;
}
.btn-ghost:hover { color: var(--fg); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ─── NAV ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(12, 12, 14, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 8px; }

/* ─── CARDS ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card-hover:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
}

/* ─── INPUTS ─── */
input[type="text"], textarea, select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s;
}

input[type="text"]:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

input[type="text"]::placeholder, textarea::placeholder {
  color: var(--fg-dim);
}

/* ─── TAG PILL ─── */
.tag-pill {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 500;
}

/* ─── UTILITY ─── */
.text-accent { color: var(--accent); }
.text-muted { color: var(--fg-muted); }
.text-dim { color: var(--fg-dim); }
.font-display { font-family: var(--font-display); }

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(200, 255, 115, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ─── COPY TOAST ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.25s ease;
  z-index: 999;
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
}
