* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f0f2f5;
  color: #333;
  padding: 20px;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

h2 {
  font-size: 18px;
  margin: 24px 0 12px;
}

#expense-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#expense-form input,
#expense-form select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}

#expense-form button {
  padding: 10px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

#expense-form button:hover {
  background: #1d4ed8;
}

#total-display {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.filter-bar {
  margin-bottom: 12px;
}

.filter-bar select {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
}

#expense-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expense-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.expense-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.expense-desc {
  font-weight: 500;
}

.expense-meta {
  font-size: 13px;
  color: #6b7280;
}

.expense-amount {
  font-weight: 600;
  color: #dc2626;
}

.delete-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.delete-btn:hover {
  color: #dc2626;
}

.empty-state {
  text-align: center;
  color: #9ca3af;
  padding: 32px 0;
  font-size: 15px;
}
