:root {
  --bg: #f5f7fa;
  --card-bg: #fff;
  --text: #1a1a2e;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --task-title: #1e293b;
  --badge-bg: #fef2f2;
  --badge-text: #dc2626;
  --blocked-heading: #dc2626;
  --header-bg: #fff;
  --shadow: none;
  --btn-bg: #f1f5f9;
  --btn-hover: #e2e8f0;
  --btn-icon: #475569;
}

.dark {
  --bg: #0f172a;
  --card-bg: #1e293b;
  --text: #e2e8f0;
  --text-heading: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: #334155;
  --border-light: #283548;
  --task-title: #f1f5f9;
  --badge-bg: #451a1a;
  --badge-text: #fca5a5;
  --blocked-heading: #fca5a5;
  --header-bg: #1e293b;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --btn-bg: #334155;
  --btn-hover: #475569;
  --btn-icon: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  transition: background 0.3s, border-color 0.3s;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 2px;
}

.last-update {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.theme-btn {
  background: var(--btn-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--btn-icon);
  display: flex;
  align-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

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

.theme-btn .icon-moon {
  display: none;
}

.dark .theme-btn .icon-sun {
  display: none;
}

.dark .theme-btn .icon-moon {
  display: block;
}

main {
  padding: 32px 0;
}

.card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.resumo {
  margin-bottom: 24px;
}

.resumo h2 {
  color: var(--text-muted);
}

#resumoContent {
  color: var(--text);
  font-size: 0.95rem;
  padding: 12px 0 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.task-list {
  list-style: none;
}

.task-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.task-list li:last-child {
  border-bottom: none;
}

.task-list li.empty {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.9rem;
}

.task-title {
  font-weight: 500;
  color: var(--task-title);
  font-size: 0.95rem;
}

.task-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.task-responsavel {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--badge-text);
  background: var(--badge-bg);
  padding: 3px 10px;
  border-radius: 4px;
}

.task-motivo {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}

.bloqueadas h2 {
  color: var(--blocked-heading);
}

footer {
  padding: 20px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.4rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    align-items: center;
  }
}
