body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #74ebd5, #acb6e5);
  margin: 0;
  padding: 20px;
  color: #2c3e50;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

h1 {
  text-align: center;
  color: #2c3e50;
  font-size: 2.8em;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.form-section form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.form-section input,
.form-section select,
.form-section button {
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  background: #f1f3f5;
  transition: all 0.3s ease;
}

.form-section input:focus,
.form-section select:focus {
  background: #e9ecef;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.form-section button {
  background: #6c5ce7;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.form-section button:hover {
  background: #5a4bcb;
}

.summary-section p {
  font-size: 18px;
  margin: 10px 0;
}

.summary-section input {
  padding: 8px;
  border: none;
  border-radius: 10px;
  background: #f1f3f5;
}

.summary-section button {
  padding: 10px 20px;
  background: #00cec9;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin: 5px;
  transition: all 0.3s ease;
}

.summary-section button:hover {
  background: #00b7b3;
}

.charts-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.chart-container {
  flex: 1;
  max-width: 350px; /* Reduzido para gráficos menores */
  margin: 0 auto;
}

.expenses-section table {
  width: 100%;
  border-collapse: collapse;
}

.expenses-section th,
.expenses-section td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.expenses-section th {
  background: #f8f9fa;
  color: #2c3e50;
  font-weight: 600;
}

.expenses-section tr.paid {
  opacity: 0.7;
  background: rgba(0, 206, 201, 0.1);
  transition: all 0.3s ease;
}

.expenses-section input[type="checkbox"] {
  cursor: pointer;
  transform: scale(1.2);
}

.expenses-section button {
  padding: 8px 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.expenses-section .delete-btn {
  background: #ff7675;
  color: #fff;
}

.expenses-section .delete-btn:hover {
  background: #d63031;
}

.feedback {
  text-align: center;
  padding: 12px;
  margin: 10px 0;
  border-radius: 10px;
  display: none;
  font-weight: 500;
}

.feedback.success {
  background: #00cec9;
  color: #fff;
}

.feedback.error {
  background: #ff7675;
  color: #fff;
}

@media (max-width: 768px) {
  .form-section form {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 15px;
  }

  .charts-section {
    flex-direction: column;
  }
}
