body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 16px;
  padding-bottom: 60px;
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 16px;
  margin-bottom: 16px;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.card p, .card h3 {
  margin: 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.income { color: #4CAF50; }
.expenses { color: #F44336; }
.delete { background: #F44336; color: white; }

.button-row {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #2196F3;
  color: white;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
  padding: 8px 0;
}

.bottom-nav button {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: grey;
}

.bottom-nav button.active {
  color: #2196F3;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 16px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
}

.modal-content select, .modal-content input {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .bottom-nav {
    position: static;
    justify-content: center;
    gap: 16px;
  }
}