/* General Reset */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

/* Page Content */
.page-content {
  padding: 100px 20px 40px;
  max-width: 1300px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom:30px;
}

.page-content h1 {
  color: #3d499c;
  margin-bottom: 10px;
}

.page-content p {
  font-size: 16px;
  color: #333;
}

.info-label {
  font-weight: bold;
  margin-top: 10px;
  display: block;
}

/* Logout Button */
#logout-button {
  color: white;
  background-color: transparent;
  border: 2px solid white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  margin-left: 20px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

#logout-button:hover {
  background-color: white;
  color: #3d499c;
  text-decoration: none;
}

button {
  background-color: #3d499c;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  width: 100%;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2e3b7a;
}

  .button-row{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;   /* center the row */
    align-items: center;
    margin: 12px 0 24px;
  }

  .button-in-row{
    display: inline-block;
    padding: 14px 28px;
    background-color:  #3d499c;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0,0,0,.12);
    transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;
  }

 .button{
    display: inline-block;
    padding: 14px 28px;
    background-color:  #3d499c;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0,0,0,.12);
    transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;
  }

  .button-in-row:hover,
  .button-in-row:focus-visible{
    background-color: #374199;
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
    outline: none;
  }

  .button-in-row:active{
    background-color: #2f3888;
    transform: translateY(1px);
  }

.centered-button {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #3d499c;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  width: auto;
}

/* Nav Styles */
nav {
  background-color: #3d499c;
  color: white;
  padding: 15px 30px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.nav-title {
  margin-left: 10px;
  font-size: 18px;
}

.nav-brand .logo {
  height: 30px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Dropdown (Desktop) */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  color: white;
  font-weight: bold;
  margin-left: 20px;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  color: #333;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  border-radius: 6px;
  overflow: hidden;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: #3d499c;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: normal;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

@media (min-width: 701px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Nav Toggle (Hidden on Desktop) */
.nav-toggle {
  display: none;
  font-size: 24px;
  background: none;
  color: white;
  border: none;
  margin-right: 10px;
  cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 700px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 15px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    display: none;
    margin-top: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a,
  .nav-links .dropbtn {
    margin: 10px 0;
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    padding: 0;
  }

  .dropdown-content {
    display: none;
    position: static;
    background-color: transparent;
    box-shadow: none;
    padding-left: 10px;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    color: white;
    padding: 6px 0;
  }

  .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

    .button-row{
      justify-content: stretch;
      gap: 10px;
    }
    .button-in-row{
      display: block;
      width: 100%;
      font-size: 16px;
      padding: 12px 18px;
    }
}

/* Footer */
.page-footer {
  background-color: #3d499c;
  color: white;
  text-align: center;
  padding: 15px 20px;
  font-size: 14px;
  margin-top: 40px;
  box-shadow: 0px -2px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.page-footer a {
  color: white;
  text-decoration: underline;
  font-weight: bold;
}

.page-footer a:hover {
  text-decoration: none;
}

/* Inline loading spinner */
.loading-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #3d499c;
  margin: 10px 0;
}

.loading-inline .spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top: 3px solid #3d499c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
