body {
  font-family: Fantasy, Papyrus;
  background-color: #C7DFC5;
  color: #373737;
  margin-left: 20px;
  padding: 0;
}

h1 {
  margin: 10px;
  color: #2c3e50;
  font-weight: bold;  
}

h2 {
  margin-top: 40px;
  margin-bottom: 4px;
  font-weight: bold;
}

p{
  font-size: 18px;
}

/*------------------------------ Header ------------------------------*/
header {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.tab-button {
  padding: 10px 20px;
  border: none;
  background-color: #C1DBE3;
  color: #151C1E;
  cursor: pointer;
  border-radius: 10px;
  font-family: Fantasy, Papyrus;
}

.tab-button.active {
  background-color: #a6b3bc;
}

.tab-button:hover {
  cursor: pointer;
  color:#132327; 
}

/* ------------------------------ 🌙 Dark Mode Styles ------------------------------ */
.user-info {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 100;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

#logout-btn {
  padding: 5px 12px;
  background-color: #d9534f;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

#logout-btn:hover {
  background-color: #c9302c;
}

/* 🌙 Dark Mode Toggle Icon Below Logout */
.dark-mode-toggle {
  font-size: 20px;
  cursor: pointer;
  padding: 2px;
}

.dark-mode-toggle i {
  color: #333;
  transition: color 0.3s ease;
}

body.dark-mode .dark-mode-toggle i {
  color: #f5f5f5;
}

/* 🌙 Dark Mode Theme Styles */
body.dark-mode {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body.dark-mode header {
  background-color: #2c2c2c;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

body.dark-mode h1 {
  color: #E3EBFF;
}

body.dark-mode .tab-button {
  background-color: #444;
  color: #fff;
}

body.dark-mode .tab-button.active {
  background-color: #666;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode button {
  background-color: #333;
  color: #f0f0f0;
  border: 1px solid #555;
}

body.dark-mode .chart-box {
  background-color: #2a2a2a;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

body.dark-mode #budget-bar-container {
  background-color: #555;
}

body.dark-mode #budget-bar-fill {
  background-color: #f39c12;
}

body.dark-mode #expense-list li {
  background-color: #2a2a2a;
  border-color: #444;
}

.user-details {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #333;
}

.user-icon {
  font-size: 24px;
  color: #333;
}

body.dark-mode .user-icon,
body.dark-mode .user-details {
  color: #f0f0f0;
}


/* ------------------------------ Home Section ------------------------------ */
.tab-content {
  display: none;
  padding: 20px;
}

.tab-content:not(.hidden) {
  display: block;
}

input,
select,
button, option{
  padding: 8px;
  font-size: 16px;
  margin-top: 10px;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  font-family: Fantasy, Papyrus;
  border-radius: 10px;
}

input:hover{
  cursor: pointer;
}

select:hover{
  cursor: pointer;
}

button:hover{
  cursor: pointer;
}

#budget-bar-container {
  background-color: #d8c441;
  height: 12px;
  width: 300px;
  border-radius: 5px;
  margin: 10px 0;
}

#budget-bar-fill {
  height: 100%;
  width: 0%;
  background-color: rgb(183, 95, 12);
  border-radius: 5px;
  transition: width 0.3s ease;
}




/* ------------------------------ Expense Form ------------------------------ */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  margin-top: 20px;
}

#expense-list {
  margin-top: 20px;
  list-style-type: none;
  padding: 0;
}

#expense-list li {
  background-color: #fff;
  padding: 10px;
  border: 1px solid #ccc;
  margin-bottom: 6px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ------------------------------ Statistics Section ------------------------------*/

#chart-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

#expense-chart{
  margin-top: 30px;
  max-width: 400px;
  width: 50px;
  height: 10px;
}

#chart-type{
  padding: 8px;
  font-size: 16px;
  margin-top: 10px;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  font-family: Fantasy, Papyrus;
  border-radius: 10px; 
}

.chart-box {
  background-color: white;
  padding: 30px;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-box canvas {
  max-width: 100%;
  height: auto;
}


/*------------------------------ Budget Section ------------------------------ */
#summary-bar-chart {
  margin-top: 10px;
  max-width: 500px;
  width: 100%;
}

#summary-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 10px;
}

.hidden {
  display: none;
}

label {
  font-weight: bold;
}

#expense-list button i {
  color: red;
  font-size: 16px;
  cursor: pointer;
}

/* 🔔 Toast Notification Styles */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #a4777c;
  color: #E6E6E6;
  padding: 20px 30px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  /* transform: translateY(20px); */
}

.toast.show {
  opacity: 1;
  /* transform: translateY(0); */
  pointer-events: auto;
}

.toast.hidden {
  display: none;
}
