*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  margin: 5px;
  padding: 5px;
  background-color: #f4f6f8;
}

.container {
  max-width: 600px;
  padding: 20px;
  margin: 0 auto;
  border-radius: 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  background-color: #ffffff;
}

h1 {
  text-align: center;
  color: rgb(255, 255, 255);
  font-size: 2rem;
}

.balance-box {
  border: 1px solid #eeeceb;
  background-color: #00000056;
  padding: 5px;
  border-radius: 3px;
  margin-bottom: 15px;
  width: 40%;
  text-align: center;
  color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.bal-container {
  display: flex;
  justify-content: space-between;
}

form {
  display: grid;
  grid-gap: 10px;
  color: white;
}

label {
  font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.link-container {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.link-container .Budget_Planner,
.link-container .todaysread {
  color: #ffffff;
  text-align: center;
  text-decoration: none;
}

.link-container .todaysread:hover,
.link-container .Budget_Planner:hover {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  padding: 10px;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: bold;
  background: linear-gradient(135deg, #d16c44, #c91a1a);
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: scale(1.02);
  background: linear-gradient(135deg, #f7b88c, #b23e2a);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.submit-btn.submitted {
  background: #360404de;
  cursor: not-allowed;
}

.past-expenses-btn {
  display: block;
  padding: 10px;
  border: none;
  color: rgba(0, 0, 0, 0.877);
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  background-color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
}

.past-expenses-btn:hover {
  background-color: #dfd9d9;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.button-wrapper {
  position: relative;
  width: 100%;
}

.settings-button-wrapper2 {
  position: relative;
  width: 100%;
}

#settingsButton {
  position: absolute;
  border: none;
  top: -19px;
  right: -19px;
  background-color: rgba(0, 0, 0, 0.815);
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
}

#toggleButton {
  position: absolute;
  border: none;
  top: -19px;
  left: -19px;
  background-color: rgba(0, 0, 0, 0.815);
  color: white;
  padding: 5px 10px;
}

#toggleButton.locked {
  background-color: rgba(255, 0, 0, 0.822);
  padding: 1px;
  color: white;
}

#toggleButton.unlocked {
  background-color: rgba(0, 128, 0, 0.801);
  padding: 1px;
  color: white;
}

.app_notification {
  text-decoration: none;
  display: block;
  text-align: center;
  color: white;
  background-color: rgb(52, 54, 47);
  transition: background-color 0.3s ease;
}

.app_notification:hover {
  background-color: black;
}


@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .bal-container {
    flex-direction: row;
    gap: 5px;
  }

  .link-container {
    gap: 10px;
  }

  .link-container .Budget_Planner,
  .link-container .todaysread {
    font-size: 14px;
  }
}