/* Explicit dark mode */
.theme-dark li {
  background: #444444;
}
.theme-dark #intro,
.theme-dark #intro a:link,
.theme-dark #intro a:visited {
  color: #cccccc;
}
.theme-dark #editModalContent,
.theme-dark #editScheduledModalContent {
  background: #333333;
}
/* Explicit light mode */
.theme-light li {
  background: #cccccc;
}
.theme-light #intro,
.theme-light #intro a:link,
.theme-light #intro a:visited {
  color: #333333;
}
.theme-light #editModalContent,
.theme-light #editScheduledModalContent {
  background: #eeeeee;
}
/* High Contrast Theme */
.theme-hc li {
  background: #eeeeee;
  color: #222222;
}
.theme-hc #intro p,
.theme-hc #intro li,
.theme-hc #intro,
.theme-hc #intro a:link,
.theme-hc #intro a:visited {
  color: #eeeeee;
}
.theme-hc #editModalContent,
.theme-hc #editScheduledModalContent {
  background: #ffffff;
  color: #000000;
}
/* Pastel Theme */
.theme-pastel li {
  background: #fdccee;
  color: #222222;
}
.theme-pastel #intro p,
.theme-pastel #intro li,
.theme-pastel #intro,
.theme-pastel #intro a:link,
.theme-pastel #intro a:visited {
  color: #444444;
}
.theme-pastel #editModalContent,
.theme-pastel #editScheduledModalContent {
  background: #f8dfff;
}

fieldset {
  margin-bottom: 1rem;
  padding: 1rem;
}

label {
  margin-right: 0.75rem;
}

textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  padding: 0.5rem;

}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: #cccccc;
}

button {
  padding: 0.5rem;
  background-color: #9757ef;
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  min-width: 8rem;
}
button:hover {
  background-color: #ffffff;
  color: #9757ef;
}

#intro {
  color: #333333;
  font-size: 1.5rem;
}
#intro li,
nav.navbar li {
  font-size: 1.25rem;
  margin: revert;
  margin-left: 2rem;
  padding: revert;
  background: revert;
  list-style: revert;
}
#intro a:link,
#intro a:visited {
  text-decoration: none;
  color: #333333;
  font-weight: bold;
}

.message-controls button {
  margin-right: 0.25rem;
}

/* Modal styles for Active Edit */
#editModal,
#editScheduledModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

#editModalContent,
#editScheduledModalContent {
  background: #eeeeee;
  margin: 10% auto;
  padding: 1.5rem;
  width: 80%;
  max-width: 800px;
  position: relative;
}

#closeEdit,
#closeScheduledEdit {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  cursor: pointer;
  font-size: 1.75em;
}

nav.navbar ul li a {
  padding: 0.5rem;
  text-decoration: none;
  font-size: 2.5rem;
}
/* By default, hide the labels */
.nav-label {
  display: none;
}
/* Responsive Navigation for Mobile
    styles.css has this size of screen when the hamburger menu is displayed;
    we will now display the labels as on the admin portal nav bar we use icons rather than words.
*/
@media (max-width: 768px) {
  .nav-label {
    display: inline-block;
    margin-left: 0.5rem;
  }
}

/* Shared form container for settings */
.settingsFormContainer {
  width: 20rem;
  margin: 2rem auto;
}

.settingsFormContainer form {
  display: flex;
  flex-direction: column;
}

.settingsFormContainer label {
  margin-bottom: 1rem;
}

.settingsFormContainer select {
  width: 100%;
  padding: 0.75rem;
  box-sizing: border-box;
  margin-top: 0.25rem;
}

.settingsFormContainer button {
  margin-top: 1rem;
  width: 96%;
}
/* Password form section */
.collapsible-header {
  cursor: pointer;
}
#chevronIcon {
  transition: transform 0.3s ease;
}
#chevronIcon.rotated {
  transform: rotate(90deg);
}

#passwordFormContainer,
#loginContainer {
  width: 20rem;
  margin: 0 auto;
}
#changePasswordForm,
#loginForm {
  display: flex;
  flex-direction: column;
}
#changePasswordForm label {
  margin-bottom: 1rem;
}
#loginForm label {
  margin-top: 1rem;
}
#changePasswordForm input[type="password"],
#loginForm input {
  width: 100%;
  padding: 0.75rem;
  box-sizing: border-box;
  margin-top: 0.25rem;
}
#passwordMessageContainer {
  margin-top: 1rem;
}
#changePasswordForm button {
  margin-top: 1rem;
  width: 96%;
}
#loginForm button {
  margin-top: 2rem;
  width: 100%;
}
.password-message-success,
.password-message-fail {
  font-size: larger;
  font-weight: bolder;
}
.password-message-success {
  padding: 0.5rem;
  background-color: rgb(200, 255, 200);
  color: green;
}
.password-message-fail {
  padding: 0.5rem;
  background-color: rgb(255, 200, 200);
  color: red;
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
  li {
    background: #444444;
  }

  #intro,
  #intro a:link,
  #intro a:visited {
    color: #cccccc;
  }

  #editModalContent,
  #editScheduledModalContent {
    background: #333333;
  }
}
