/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f9fafb;
  color: #333;
  display: flex;
  justify-content: center;
  padding: 20px;
}

/* App Container */
.app-container {
  max-width: 800px;
  width: 100%;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 20px;
}
header h1 {
  font-size: 2rem;
  color: #2d6cdf;
}

/* Card */
.card {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h2 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #444;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
}
input, select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
}
.btn {
  padding: 10px 15px;
  background: #2d6cdf;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.btn:hover {
  background: #1c4fa3;
}

/* Summary */
.summary-grid {
  display: flex;
  gap: 15px;
  justify-content: space-between;
}
.summary-box {
  flex: 1;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
}
.summary-box p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #777;
}
.summary-box h3 {
  font-size: 1.5rem;
}
.income { background: #e0f7e9; color: #1a7f37; }
.expense { background: #fde8e8; color: #b91c1c; }
.balance { background: #e0ecff; color: #1d4ed8; }

/* Transactions */
.transaction-list {
  list-style: none;
}
.transaction-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: #f4f6f8;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.transaction-list li span {
  font-weight: bold;
}
.transaction-list button {
  background: none;
  border: none;
  color: #b91c1c;
  cursor: pointer;
  font-size: 1rem;
}
.transaction-list button:hover {
  color: #ef4444;
}
