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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #eef2f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* AQUI ESTÁ O AJUSTE PARA DESGRUDAR */
header {
  width: 100%;
  text-align: center;
  padding: 40px 0 20px; /* Espaço no topo do site */
}

h1 { 
  color: #2c3e50; 
  margin-bottom: 10px; 
  text-transform: uppercase; 
  font-size: 1.5rem; 
  letter-spacing: 1px; 
  text-align: center; 
}

header p {
  color: #666;
  margin-bottom: 30px; /* Espaço para o dashboard não colar no título */
}

/* CONTAINER DASHBOARD */
.container-dashboard {
  display: flex;
  flex-direction: row;
  gap: 25px;
  width: 100%;
  max-width: 950px;
  align-items: flex-start;
  padding: 0 20px;
  margin-bottom: 50px;
}

.coluna-box {
  flex: 1;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* FORMULÁRIO */
#formulario { display: flex; flex-direction: column; gap: 15px; }
input, select, button { padding: 14px; border-radius: 8px; border: 1px solid #ddd; font-size: 1rem; outline: none; width: 100%; }
input:focus { border-color: #27ae60; }
button { background: #27ae60; color: white; font-weight: bold; cursor: pointer; border: none; transition: 0.3s; }
button:hover { background: #219150; transform: translateY(-2px); }

/* LISTA */
.header-transacoes { background: #2c3e50; color: white; padding: 12px; border-radius: 6px; text-align: center; margin-bottom: 15px; font-weight: bold; }
ul { list-style: none; margin-bottom: 20px; max-height: 250px; overflow-y: auto; }
ul li { background: #fdfdfd; padding: 12px 15px; margin-bottom: 8px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; border-left: 6px solid #ddd; }
.item-ganho { border-left-color: #27ae60; }
.item-gasto { border-left-color: #e74c3c; }

/* RESUMO */
.lucro-box { background: #2c3e50; color: white; padding: 20px; border-radius: 10px; text-align: center; margin-top: 20px; }
#lucro { font-size: 1.8rem; font-weight: bold; display: block; margin-top: 5px; }

/* RODAPÉ */
.main-footer { width: 100%; background: #1a1a1a; color: white; padding: 30px 10%; margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 5px solid #27ae60; flex-wrap: wrap; gap: 20px; }
.footer-item { flex: 1; min-width: 150px; text-align: center; }
.footer-logo { width: 80px; margin-bottom: 10px; }
.version-tag { color: #27ae60; border: 1px solid #27ae60; padding: 2px 8px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; }
.github-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #95a5a6; text-decoration: none; transition: 0.3s; }
.github-link:hover { color: #27ae60; }

@media (max-width: 800px) { .container-dashboard { flex-direction: column; align-items: center; } .coluna-box { width: 90%; margin-bottom: 20px; } }