:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --border: #30363d;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --green: #3fb950;
  --yellow: #d29922;
  --red: #f85149;
  --purple: #a371f7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

header h1 {
  font-size: 24px;
  font-weight: 600;
}

.last-update {
  color: var(--text-muted);
  font-size: 14px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .row {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

/* Tree */
.tree {
  font-family: monospace;
  font-size: 14px;
}

.tree-item {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tree-item .stack {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--border);
}

.tree-item .stack.rust { background: #f74c00; color: white; }
.tree-item .stack.python { background: #3572A5; color: white; }
.tree-item .stack.node { background: #68a063; color: white; }

/* Workflow */
.workflow ol {
  padding-left: 20px;
}

.workflow li {
  padding: 4px 0;
  color: var(--text-muted);
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(88, 166, 255, 0.1);
}

/* Status badges */
.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status.ativo { background: rgba(63, 185, 80, 0.2); color: var(--green); }
.status.pausado { background: rgba(210, 153, 34, 0.2); color: var(--yellow); }
.status.concluido { background: rgba(163, 113, 247, 0.2); color: var(--purple); }

/* Progress bar */
.progress {
  width: 100px;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}

.progress-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

/* Activity alert */
.activity {
  font-size: 13px;
}

.activity.alert {
  color: var(--red);
  font-weight: 500;
}

.activity.ok {
  color: var(--text-muted);
}

/* Task lists */
.task-list {
  list-style: none;
}

.task-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-list li:last-child {
  border-bottom: none;
}

.task-list .project-tag {
  font-size: 11px;
  padding: 2px 6px;
  background: var(--border);
  border-radius: 3px;
  color: var(--text-muted);
}

.task-list.done li {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Form */
.idea-form .form-row {
  display: flex;
  gap: 12px;
}

.idea-form select,
.idea-form input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.idea-form select {
  min-width: 180px;
}

.idea-form input {
  flex: 1;
}

.idea-form button {
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.idea-form button:hover {
  opacity: 0.9;
}

.idea-form .hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Suggestions */
.suggestions ul {
  list-style: none;
}

.suggestions li {
  padding: 8px 0;
  color: var(--text-muted);
}

.suggestions li::before {
  content: "💡 ";
}

/* Footer */
footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
