/* Global body styles */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f8ff;
}

/* Container styling - flexible and responsive */
.container {
  margin: 20px auto;
  width: 90%;
  max-width: 500px; /* expands on desktop via media queries below */
  border: 3px solid #ccc;
  padding: 20px;
  padding-left: 3%;
  padding-right: 3%;
  background-color: #d5f5e3;
  border-radius: 10px;
  box-sizing: border-box;
}

/* Ensure hidden elements remain hidden */
.hidden {
  display: none;
}

/* Error messages */
.error {
  color: red;
}

/* Headings */
h1, h3, h4 {
  color: #0b7d3b;
  text-align: center;
}
h2{
  color: #22486b;
  text-align: center;
}
span{
  color: #163f28;
  font-weight: bold;
}
/* Button styling */
button {
  background-color: #1f618d;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 5px auto;
  margin-right: 5px;
  cursor: pointer;
  border-radius: 5px;
}
button:hover {
  background-color: #d35400;
}
.logoutbtn{
  background-color: #f0f8ff;
  border-radius: 20px;
  color: #1f618d;
  border: 1.5px solid #1f618d;
}
.logoutbtn:hover{
  color: white;
}
/* Input fields */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"] {
  width: calc(100% - 20px);
  padding: 10px;
  margin: 5px 0 8px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f0f3f4;
  box-sizing: border-box;
}

/* Labels */
label {
  color: #34495e;
  font-weight: bold;
}

/* Current Balance display */
#currentBalance {
  display: inline-block;
  padding: 10px;
  background-color: #f0f3f4;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #34495e;
  font-weight: bold;
}

/* Profile Dashboard: Ensure profile info is aligned properly */
#profileDashboard p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0;
}
#profileDashboard p button {
  background-color: #1f618d;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 0.9em;
}
#profileDashboard p button:hover {
  background-color: #d35400;
}

/* Responsive adjustments using media queries */
@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 15px;
  }
}

@media (min-width: 768px) {
  .container {
    width: 80%;
    max-width: 500px; /* larger maximum width for desktop */
  }
}
/* Basic modal styles */
.modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}
.hidden {
  display: none;
}
/* Style for gear icon */
#profileIcon {
  
  cursor: pointer;
  font-size: 30px;
  margin-left: 25%;
}
a{
  cursor: pointer;
}
