body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #2980b9; /* light blue background */
  color: #333;
}

.final-arrow-up {
  color: green;
  font-weight: bold;
  margin-left: 8px;
}
.final-arrow-down {
  color: red;
  font-weight: bold;
  margin-left: 8px;
}

.container {
  background-color: #e3f0ff; /* or a lighter shade you like */
  border-radius: 12px;
  box-shadow: 0 10px 12px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem;
  margin: 30px auto 0;
  max-width: 1200px;
}

.chart-container {
  position: relative;
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-top: 20px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.fetch-button {
  padding: 0.4rem 0.8rem;
  font-weight: bold;
  font-size: 0.9rem;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.fetch-button:hover {
  background-color: #219150;
}

.last-updated {
  font-size: 0.85rem;
  color: #555;
}

/* Tabs style */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.tab-button {
  padding: 1rem 2rem;       /* increase padding for bigger clickable area */
  font-size: 1.2rem;        /* enlarge text */
  font-weight: bold;
  cursor: pointer;
  border: none;
  background: #ddd;
  border-radius: 6px 6px 0 0;
  transition: background-color 0.3s ease;
  min-width: 120px;         /* optional: make buttons wider */
  height: 50px;             /* optional: increase height */
  display: flex;            /* for vertical centering */
  align-items: center;      /* center text vertically */
  justify-content: center;  /* center text horizontally */
}

.tab-button.active {
  background: #2980b9;
  color: white;
}

.tab-content {
  display: none;
  background: #e3f0ff; /* match container, was white before */
  padding: 1rem;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 6px 6px 6px;
}
.tab-content.active {
  display: block;
}


.tab-content.active {
  display: block;
}

.form-group {
  margin-bottom: 1rem;
  max-width: 350px;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  box-sizing: border-box;
}

#addFundsForm button[type="submit"] {
  background-color: #2980b9;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#addFundsForm button[type="submit"]:hover {
  background-color: #1f6396;
}

#transactionHistory {
  width: 100%;
  max-width: 800px;
  margin-top: 1rem;
  border-collapse: collapse;
}

#transactionHistory th,
#transactionHistory td {
  text-align: center;
  padding: 0.5rem;
}

#transactionHistory th {
  background-color: #2980b9;
  color: white;
}

.remove-btn {
  background-color: #e74c3c;
  border: none;
  color: white;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

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

.login-box {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  text-align: center;
  width: 300px;
  margin: 100px auto;
}

.login-box input {
  width: 100%;
  margin: 10px 0;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login-box button {
  width: 100%;
  padding: 0.6rem;
  background: #2980b9;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login-box button:hover {
  background: #1f6396;
}

.error {
  color: red;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

#totalChartModeButtons {
  margin-bottom: 10px;
}

.mode-btn {
  padding: 6px 14px;
  border: 1px solid #2980b9;
  background: white;
  color: #2980b9;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.2s ease;
  font-size: 0.9em;
  white-space: nowrap;
}

.mode-btn.selected, .mode-btn:hover {
  background-color: #2980b9;
  color: white;
}
