/* General */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #eef2f7;
  margin: 0;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #007bff;
  color: white;
}

.header-left h1 {
  margin: 0;
  font-size: 1.8rem;
}

.header-left .title {
  display: block;
  font-size: 1rem;
  color: #f0f0f0;
}

.header-right a, .header-right button {
  margin-left: 15px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
}

.header-right a:hover, .header-right button:hover {
  text-decoration: underline;
}

/* Inputs and Buttons */
input, select, button {
  padding: 10px;
  margin: 5px 5px 15px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #0056b3;
}

/* Expense List */
ul {
  list-style: none;
  padding: 0;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 10px;
  background: #f4f6f8;
  margin-bottom: 10px;
  border-radius: 10px;
}

.expense-badge {
  padding: 5px 10px;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  margin-left: 10px;
}

.expense-badge.Food { background: #28a745; }
.expense-badge.Transport { background: #ffc107; }
.expense-badge.Shopping { background: #17a2b8; }
.expense-badge.Others { background: #6c757d; }
.expense-badge.Recurring { border: 2px solid #000; }

/* Summary */
.summary {
  margin-top: 20px;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: #007bff;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 30px;
  font-weight: bold;
}

/* Responsive */
@media(max-width: 768px){
  .container {
    margin: 10px;
    padding: 15px;
  }
  header {
    flex-direction: column;
    text-align: center;
  }
  .header-right {
    margin-top: 10px;
  }
}
