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

/* Login */
.login-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #0f1117;
}

.login-box {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.login-box h1 { margin-bottom: 4px; }
.login-desc { color: #8b949e; font-size: 13px; margin-bottom: 24px; }

.login-box input {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #0f1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e1e4e8;
  font-size: 14px;
}
.login-box input:focus { outline: none; border-color: #58a6ff; }

.login-box button {
  width: 100%;
  padding: 10px;
  background: #238636;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.login-box button:hover { background: #2ea043; }
.login-box button:disabled { opacity: 0.6; cursor: not-allowed; }

.login-erro { color: #f85149; font-size: 13px; margin-top: 12px; min-height: 18px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f1117;
  color: #e1e4e8;
  min-height: 100vh;
}

header {
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 16px 24px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

h1 { font-size: 20px; font-weight: 600; }
.subtitle { color: #58a6ff; font-weight: 400; }

.header-controls { display: flex; gap: 8px; }

select, button {
  background: #21262d;
  color: #e1e4e8;
  border: 1px solid #30363d;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
select:hover, button:hover { border-color: #58a6ff; }
#btn-logout { background: #21262d; color: #f85149; border-color: #f8514930; }
#btn-logout:hover { border-color: #f85149; }

nav { display: flex; gap: 0; }

.tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8b949e;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 0;
}
.tab:hover { color: #e1e4e8; }
.tab.active { color: #58a6ff; border-bottom-color: #58a6ff; }

main { padding: 24px; max-width: 1200px; margin: 0 auto; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-label { font-size: 12px; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; }
.card-value { font-size: 28px; font-weight: 700; }
.card-green { color: #3fb950; }
.card-red { color: #f85149; }
.card-yellow { color: #d29922; }

/* Charts */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.chart-box {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 16px;
}
.chart-box.full { grid-column: 1 / -1; }
.chart-box h3 { font-size: 14px; color: #8b949e; margin-bottom: 12px; }

/* Lists */
.lista { display: flex; flex-direction: column; gap: 8px; }

.lista-item {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 16px;
}

.lista-item h4 { font-size: 14px; margin-bottom: 8px; }
.lista-item p { font-size: 13px; color: #8b949e; line-height: 1.5; }
.lista-item .meta { font-size: 11px; color: #6e7681; margin-top: 8px; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}
.badge-otimo { background: #1a3a2a; color: #3fb950; }
.badge-bom { background: #1a3040; color: #58a6ff; }
.badge-regular { background: #3a2a10; color: #d29922; }
.badge-ruim { background: #3a1a1a; color: #f85149; }
.badge-alto { background: #3a1a1a; color: #f85149; }
.badge-medio { background: #3a2a10; color: #d29922; }
.badge-baixo { background: #1a3040; color: #58a6ff; }
.badge-pendente { background: #3a2a10; color: #d29922; }
.badge-aprovado { background: #1a3040; color: #58a6ff; }
.badge-implementado { background: #1a3a2a; color: #3fb950; }
.badge-rejeitado { background: #2a2a2a; color: #6e7681; }

.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.filters label { font-size: 13px; color: #8b949e; cursor: pointer; }

.backlog-header { display: flex; gap: 8px; margin-bottom: 16px; }

.empty { text-align: center; color: #6e7681; padding: 40px; font-size: 14px; }

.cards-small {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .charts-row { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  header { padding: 12px 16px 0; }
  main { padding: 16px; }
  .header-content { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card-value { font-size: 22px; }
}
