/* styles.css */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f6f8;
  margin: 0;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.container {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 95%;
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 2rem;
}

/* Form styles */
form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.form-group {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

label {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #0c0c0c;
}

input,
select {
  padding: 0.6rem;
  border: 1px solid #dcdfe3;
  border-radius: 6px;
  font-size: 1rem;
}

.button-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

button#add-expense {
  padding: 0.7rem 1.2rem;
  background-color: #2d7ff9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button#add-expense:hover {
  background-color: #1a5ddc;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding: 0.8rem;
  border-top: 1px solid #b5b5b5;
  color: #333;
}

tbody td, tfoot td {
  padding: 0.8rem;
  border-top: 1px solid #b5b5b5;
}

tfoot td {
  font-weight: bold;
}

.reset-btn {
  margin-top: 1.5rem;
  padding: 0.7rem;
  width: 100%;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.reset-btn:hover {
  background-color: #c0392b;
}

/* Responsive tweak for small screens */
@media (max-width: 480px) {
  .form-group {
    flex: 1 1 100%;
  }
}
