/*
  Estilos para o aplicativo de controle financeiro offline.
  O foco está em uma interface limpa, responsiva e fácil de usar mesmo em
  dispositivos móveis. Os elementos usam cores neutras com destaque para botões
  e totais importantes. Você pode personalizar as cores e fontes de acordo
  com sua identidade visual.
*/

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f5f6fa;
  color: #333;
}

header {
  background-color: #2f5d62;
  color: #ffffff;
  padding: 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

main {
  width: 95%;
  max-width: 1000px;
  margin: 1rem auto;
  padding-bottom: 2rem;
}

section {
  margin-bottom: 2rem;
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #2f5d62;
}

.field-group {
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
}

.field-group label {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.field-group input,
.field-group select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  padding: 0.6rem 1.2rem;
  background-color: #2f5d62;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: #244b4e;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  text-align: left;
  padding: 0.6rem;
  border-bottom: 1px solid #e0e0e0;
}

th {
  background-color: #f0f2f5;
  font-weight: 600;
}

tr:nth-child(even) td {
  background-color: #fafafa;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.summary div span {
  font-weight: 700;
  margin-left: 0.3rem;
}

#budgets-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.budget-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.8rem;
}

.budget-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #2f5d62;
}

.budget-item input[type="number"] {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.4rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.progress-bar {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
  margin-top: 0.3rem;
}

.progress-bar-inner {
  height: 100%;
  background-color: #2f5d62;
  width: 0%;
  border-radius: 4px;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
}