* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

body {
  background: linear-gradient(to bottom right, #0f172a, #4c1d95, #0f172a);
  color: white;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.container {
  width: 100%;
  max-width: 900px;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  color: #c4b5fd;
}

.month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.month-nav h2 {
  font-size: 1.5rem;
}

.month-nav button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

#toggleForm {
  width: 100%;
  background: #7e22ce;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 1rem;
}

#toggleForm:hover {
  background: #6d28d9;
}

#transactionForm {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

#transactionForm input,
#transactionForm select {
  padding: 0.5rem;
  border-radius: 8px;
  border: none;
}

.form-actions {
  grid-column: span 2;
  display: flex;
  gap: 1rem;
}

.form-actions button {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

#addTransaction {
  background: #16a34a;
  color: white;
}

#cancelForm {
  background: #dc2626;
  color: white;
}

.hidden {
  display: none;
}

.transactions {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
}

.transactions h2 {
  margin-bottom: 1rem;
}

#transactionList {
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0;
}

.transaction-item button {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
}
