/* Garante que use a tela toda */
html, body {
  height: 100%;
  margin: 0;
}

/* Fundo azul e centralização */
body {
  background: linear-gradient(135deg, #2980b9, #6dd5fa);
  display: flex;
  justify-content: center;  /* centro horizontal */
  align-items: center;      /* centro vertical */
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* Card central */
.container {
  background: #ffffffee;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Cabeçalho */
h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #2980b9;
}

/* Formulário */
form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

form input, form select, form button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

form button {
  background: #2980b9;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

form button:hover {
  background: #3498db;
}

/* Tabela */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

table th, table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

table th {
  background: #2980b9;
  color: #fff;
}

/* Resumo */
.resumo {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-top: 20px;
 }
 .card {
  flex: 1;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
 }
 .card img {
  width: 28px;
  height: 28px;
 }
 /* Cores específicas */
 .card.receita {
  border-left: 6px solid #27ae60; /* verde */
 }
 .card.despesa {
  border-left: 6px solid #c0392b; /* vermelho */
 }
 .card.saldo {
  border-left: 6px solid #2980b9; /* azul */
 }

#totalReceitas { color: #27ae60; }
#totalDespesas { color: #c0392b; }
#saldo { color: #2980b9; }
