/* General Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f2f5;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Header with Gradient */
header {
  background: linear-gradient(135deg, #4cafef, #6a5acd);
  color: white;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1 {
  margin: 0;
  font-size: 28px;
}

/* Balance Card */
.balance {
  background: white;
  padding: 20px;
  border-radius: 15px;
  margin: 20px auto;
  max-width: 400px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Forms Layout */
.form-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.form {
  background: white;
  padding: 20px;
  border-radius: 15px;
  max-width: 300px;
  flex: 1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.income-form {
  border-top: 6px solid #4caf50;
}

.expense-form {
  border-top: 6px solid #f44336;
}

input {
  padding: 10px;
  width: 90%;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: 0.2s;
}

input:focus {
  border-color: #4cafef;
  box-shadow: 0 0 5px rgba(76, 175, 239, 0.3);
}

button {
  padding: 10px 20px;
  background: #4cafef;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

button:hover {
  background: #3a9bdc;
}

/* Transactions */
.transactions {
  margin-top: 20px;
}

.transactions ul {
  list-style: none;
  padding: 0;
}

.transactions li {
  background: white;
  padding: 12px;
  margin: 8px auto;
  border-radius: 10px;
  max-width: 400px;
  text-align: left;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.transactions li span {
  font-weight: normal;
}

/* Chart Container */
.chart-container {
  margin-top: 30px;
  background: white;
  padding: 20px;
  border-radius: 20px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
