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

body {
  background: linear-gradient(135deg, #f5f7fb, #e8eefc);
  min-height: 100vh;
  padding: 30px 15px;
}

.container {
  max-width: 800px;
  margin: auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

h1 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 32px;
  color: #222;
}

.expense-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 25px;
}

.expense-form input,
.expense-form select,
.expense-form button {
  padding: 14px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid #dcdfe6;
  outline: none;
  transition: 0.2s ease;
}

.expense-form input:focus,
.expense-form select:focus {
  border-color: #6c63ff;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.expense-form button {
  grid-column: span 2;
  background: #6c63ff;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.expense-form button:hover {
  background: #574bdb;
}

.summary {
  background: #f7f8ff;
  border: 1px solid #e2e6ff;
  padding: 18px;
  border-radius: 14px;
  text-align: center;
  margin-bottom: 25px;
}

.summary h2 {
  font-size: 24px;
  color: #222;
}

.expense-list {
  list-style: none;
}

.expense-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: #fafafa;
  border: 1px solid #ececec;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.expense-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

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

.expense-info strong {
  font-size: 17px;
  color: #222;
}

.expense-info small {
  color: #666;
  font-size: 14px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.amount-text {
  font-weight: bold;
  color: #222;
  margin-right: 8px;
}

.edit-btn,
.delete-btn {
  border: none;
  padding: 9px 14px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 14px;
}

.edit-btn {
  background: #ecebff;
  color: #4b43d1;
}

.edit-btn:hover {
  background: #dddafe;
}

.delete-btn {
  background: #ffe3e3;
  color: #c92a2a;
}

.delete-btn:hover {
  background: #ffd0d0;
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  .expense-form {
    grid-template-columns: 1fr;
  }

  .expense-form button {
    grid-column: span 1;
  }

  .expense-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    width: 100%;
    justify-content: space-between;
  }
}

.filter {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid #dcdfe6;
  font-size: 15px;
  outline: none;
}
