/* General Page */
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2); /* Background */
  margin: 0;
  padding: 0;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Summary cards (Income, Expense, Total) */
.summary {
  display: flex;
  justify-content: space-around;
  margin: 20px;
  gap: 20px;
  width: 95%;
  max-width: 1000px;
}

.summary div {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease-in-out;
}

.summary div:hover {
  transform: translateY(-5px);
}

/* Income, Expense, Total Cards */
#income {
  background: linear-gradient(135deg, #e9f9f0, #c7f7db);
  color: #28a745;
  border-left: 6px solid #28a745;
}

#expense {
  background: linear-gradient(135deg, #fce9e9, #f8c6c6);
  color: #dc3545;
  border-left: 6px solid #dc3545;
}

#total {
  background: linear-gradient(135deg, #000, #333);
  color: #fff;
  border-left: 6px solid #007bff;
}

#total span {
  color: #00aaff;
  font-weight: bold;
  font-size: 20px;
}

/* Filter section */
.filters {
  display: flex;
  gap: 15px;
  background: white;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin: 10px;
  justify-content: center;
  flex-wrap: wrap;
  width: 90%;
  max-width: 800px;
}

.filters select,
.filters input[type="date"],
.filters button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease-in-out;
  background: #f0f0f0;
  cursor: pointer;
}

.filters select:hover,
.filters input[type="date"]:hover,
.filters button:hover {
  background: #e2e6ea;
}

/* Transaction list */
#transaction-list {
  list-style: none;
  padding: 0;
  margin: 20px;
  width: 90%;
  max-width: 800px;
}

#transaction-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

li.income {
  background: #e9f9f0;
  border-left: 6px solid #28a745;
}

li.expense {
  background: #fce9e9;
  border-left: 6px solid #dc3545;
}

/* Delete button */
.delete-btn {
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.delete-btn:hover {
  background: #cc0000;
}

/* Add Transaction button */
.add-btn {
  background: #000;       /* Black background */
  color: #fff;            /* White text */
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin: 20px auto;
  display: block;
  transition: background 0.2s, transform 0.2s;
}

.add-btn:hover {
  background: #333;
  transform: scale(1.05);
}

/* No data */
.no-data {
  text-align: center;
  color: #fff;
  margin-top: 15px;
  font-style: italic;
}
