body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to right, #4facfe, #00f2fe);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  height: 100vh;
}
.container {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  text-align: center;
}
h2 {
  margin-bottom: 15px;
  color: #333;
}
input,
select {
  width: calc(100% - 20px);
  padding: 12px;
  margin: 10px 0;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}
button {
  /* width: 100%; */
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s ease, transform 0.2s ease;
}
button:hover {
  background: #0056b3;
  transform: scale(1.05);
}
.expense-list {
  margin-top: 15px;
  text-align: left;
}
.expense-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f1f1;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  font-weight: bold;
  border-left: 4px solid #007bff;
}
.expense-item button {
  background: red;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}
.expense-item button:hover {
  background: darkred;
}
.total {
  margin-top: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #007bff;
}

.navbar {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  display: flex;
  justify-content: flex-start;
}

/* Back Button */
.back-button {
  background: #2867f0;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 40px;
}

.back-button:hover {
  background: #0190f6;
  transform: scale(1.05);
}

.toggle-btn {
  position: fixed;
  top: 0;
  right: 30px;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 30px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1000;

  /* Centering the icon */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toggle theme style */
#toggleTheme {
  background: transparent;
  box-shadow: none;
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Click animation (subtle scaling effect) */
#toggleTheme:active {
  transform: scale(0.9);
  opacity: 0.7;
}

/* Dark mode effect */
.dark-mode #toggleTheme {
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Click animation in dark mode */
.dark-mode #toggleTheme:active {
  transform: scale(0.9);
  opacity: 0.7;
}

.toggle-btn:hover {
  background: #0056b3;
}
body.dark-mode {
  background: #121212;
}
.dark-mode .container {
  background: #414141;
}
.dark-mode .container h2{
  color: white;
}