* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(to right, #667eea, #764ba2);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 90%;
  max-width: 800px;
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.balance-card {
  text-align: center;
  margin-bottom: 25px;
}

.balance-card h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #222;
}

.income-expense {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.income-expense .box {
  flex: 1;
  padding: 15px;
  margin: 5px;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
}

.income {
  background: #2ecc71;
}

.expense {
  background: #e74c3c;
}

.expense-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.expense-form input, 
.expense-form select, 
.expense-form button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.expense-form button {
  background: #667eea;
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.expense-form button:hover {
  background: #4a5fc1;
}

.filter {
  margin-bottom: 15px;
  text-align: right;
}

.filter select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

thead {
  background: #667eea;
  color: white;
}

thead th {
  padding: 12px;
}

tbody td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

tbody tr:hover {
  background: #f9f9f9;
}

tbody button {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

tbody button:hover {
  background: #c0392b;
}
