:root {
  --bg: #0f172a;
  --card: #1e293b;
  --border: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --gold: #f59e0b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 2rem 1rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

header p {
  color: var(--muted);
}

/* Form Section */
.add-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  margin-bottom: 1rem;
  resize: vertical;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  transition: 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

/* Filters */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-outline {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.btn-outline[data-active="true"] {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245, 158, 11, 0.1);
}

/* Ideas Grid */
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.idea-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.category-badge {
  font-size: 0.75rem;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
}

.fav-btn {
  background: transparent;
  padding: 0.2rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.fav-btn.active {
  color: var(--gold);
}

.idea-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.idea-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.status-select {
  width: auto;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.delete-btn {
  background: transparent;
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
}

.delete-btn:hover {
  color: var(--danger);
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 600px) {
  .form-row, .filters {
    flex-direction: column;
  }
}