body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #f5f5f5;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;     /* centraliza vertical */
  padding: 24px;
}

/* Card central grande */
.app {
  width: 100%;
  max-width: 900px;
  background: #0b1220;
  border-radius: 24px;
  padding: 32px 32px 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 2px solid #2563eb;
}

/* Header: avatar + info em linha */
.header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

/* Avatar maior */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #facc15;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Textos da treinadora */
.trainer-info h1 {
  font-size: 2.3rem;
  margin: 0 0 8px;
}

.trainer-info p {
  margin: 0;
  font-size: 1.1rem;
  color: #cbd5f5;
}

/* Barra de XP como na imagem 2 */
.xp-bar-wrapper {
  margin-top: 24px;
}

.xp-label {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #e5e7eb;
}

.xp-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #020617;
  overflow: hidden;
  border: 1px solid #2563eb;
}

.xp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 0.3s ease;
}

/* Input + botão ocupando a largura */
.form {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 16px;
}

#taskInput {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid #2563eb;
  background: #020617;
  color: #f5f5f5;
  font-size: 1rem;
}

#taskInput::placeholder {
  color: #9ca3af;
}

/* Botão Add “pílula” amarelo */
.form button {
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  background: #facc15;
  color: #111827;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.form button:hover {
  filter: brightness(1.05);
}

/* Lista de tarefas ocupando toda a largura */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #020617;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid #1f2937;
}

.task-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-left input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.task-title {
  font-size: 0.98rem;
}

.task-title.done {
  text-decoration: line-through;
  opacity: 0.6;
}

.task-right button {
  border: none;
  background: transparent;
  color: #f87171;
  cursor: pointer;
  font-size: 18px;
}

.empty {
  text-align: center;
  font-size: 0.95rem;
  color: #9ca3af;
  margin-top: 12px;
}

/* Responsivo */
@media (max-width: 768px) {
  .app {
    padding: 24px 18px 32px;
  }

  .header {
    flex-direction: row;
    align-items: center;
  }

  .trainer-info h1 {
    font-size: 1.8rem;
  }
}
