﻿html {
  height: 100%;
  width: 100%;
}
.mainText {
  font-family: 'Edu QLD Hand', cursive;
  font-weight: 700;
  font-size: 3rem;
  text-align: center;
  margin-top: 20%;
  color: #0032dc;
}


.description {
  font-family: 'Edu QLD Hand', cursive;
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 0;
  position: relative;
  top: -20px;
  text-align: center;
  color: #0028aa;
}


.homeButton {
  font-family: 'Edu QLD Hand', cursive;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 0;
  display: block;
  margin: auto;
  background-color: #0028aa;
  border-radius: 8px;
  border-width: 0px;
  transition: background-color 0.125s ease-in-out;;
}
.homeButton:hover {
  background-color: #0035cc;
}
.topnav {
  color: white;
  background-color: #004182;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
}


.topnav a {
  font-family: Calibri, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  text-align: center;
  padding-left: 5px;
  color: white;
  transition: color 0.1s ease-in-out;
}


.topnav a:hover {
  color: #8abef0;
}


.loginContainer {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Edu QLD Hand', cursive;
}


.loginTitle {
  font-family: 'Edu QLD Hand', cursive;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  color: #0032dc;
  margin-bottom: 30px;
}


.inputGroup {
  margin-bottom: 20px;
}


.inputGroup label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #0028aa;
  font-size: 1.1rem;
}


.inputGroup input {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: Calibri, sans-serif;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}


.inputGroup input:focus {
  outline: none;
  border-color: #0032dc;
}


.loginButton {
  width: 100%;
  padding: 12px;
  background-color: #0028aa;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Edu QLD Hand', cursive;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


.loginButton:hover {
  background-color: #0035cc;
}


.errorMessage {
  color: #d32f2f;
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
}


.signupLink {
  text-align: center;
  margin-top: 20px;
  color: #0028aa;
}


.signupLink a {
  color: #0032dc;
  text-decoration: none;
  font-weight: 600;
}


.signupLink a:hover {
  text-decoration: underline;
}


.dashboardContent {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  background-color: #f0f7ff;
  border-radius: 8px;
  text-align: center;
  font-family: 'Edu QLD Hand', cursive;
}


.dashboardContent h3 {
  color: #0032dc;
  font-size: 1.8rem;
  margin-bottom: 20px;
}


.dashboardContent p {
  color: #0028aa;
  font-size: 1.2rem;
}


.addPasswordSection {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.addPasswordSection h4 {
  color: #0032dc;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
}


.addPasswordButton {
  width: 100%;
  padding: 10px;
  background-color: #0028aa;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Edu QLD Hand', cursive;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


.addPasswordButton:hover {
  background-color: #0035cc;
}


.toggleAddPasswordButton {
  padding: 12px 24px;
  background-color: #0028aa;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Edu QLD Hand', cursive;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}


.toggleAddPasswordButton:hover {
  background-color: #0035cc;
}


.savedPasswordsSection {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.savedPasswordsSection h4 {
  color: #0032dc;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
}


.passwordItem {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 5px;
  padding: 15px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.passwordField {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Calibri, sans-serif;
}


.passwordField strong {
  color: #0028aa;
  min-width: 80px;
}


.passwordValue {
  flex-grow: 1;
  margin-left: 10px;
  font-family: monospace;
  background-color: white;
  padding: 5px 8px;
  border-radius: 3px;
  border: 1px solid #ddd;
}


.toggleButton {
  background-color: #0028aa;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Edu QLD Hand', cursive;
  cursor: pointer;
  margin-left: 10px;
  transition: background-color 0.3s ease;
}


.toggleButton:hover {
  background-color: #0035cc;
}


.noPasswords {
  text-align: center;
  color: #6c757d;
  font-style: italic;
}


.passwordActions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}


.editButton, .deleteButton, .saveButton, .cancelButton {
  padding: 5px 12px;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Edu QLD Hand', cursive;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


.editButton {
  background-color: #0028aa;
  color: white;
}


.editButton:hover {
  background-color: #0035cc;
}


.deleteButton {
  background-color: #d32f2f;
  color: white;
}


.deleteButton:hover {
  background-color: #b71c1c;
}


.saveButton {
  background-color: #0028aa;
  color: white;
}


.saveButton:hover {
  background-color: #0035cc;
}


.cancelButton {
  background-color: #6c757d;
  color: white;
}


.cancelButton:hover {
  background-color: #5a6268;
}


.passwordValue input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: monospace;
  background-color: white;
}


/* Settings Page Styles */
.settingsContainer {
  max-width: 500px;
  margin: 100px auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Edu QLD Hand', cursive;
}


.settingsTitle {
  font-family: 'Edu QLD Hand', cursive;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  color: #0032dc;
  margin-bottom: 30px;
}


.settingsSection {
  margin-bottom: 30px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


.settingsSection h3 {
  color: #0032dc;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
}


.accountInfo {
  display: flex;
  flex-direction: column;
  gap: 15px;
}


.infoField {
  display: flex;
  align-items: center;
  gap: 10px;
}


.infoField label {
  font-weight: 600;
  color: #0028aa;
  min-width: 80px;
}


.infoField span {
  flex-grow: 1;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: monospace;
}


.themeToggle {
  display: flex;
  align-items: center;
  gap: 15px;
}


.themeToggle label {
  font-weight: 600;
  color: #0028aa;
  font-size: 1.1rem;
}


#darkModeToggle {
  width: 50px;
  height: 25px;
  appearance: none;
  background-color: #ddd;
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


#darkModeToggle:checked {
  background-color: #0028aa;
}


#darkModeToggle::before {
  content: '';
  position: absolute;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}


#darkModeToggle:checked::before {
  transform: translateX(25px);
}


.backButton {
  width: 100%;
  padding: 12px;
  background-color: #0028aa;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Edu QLD Hand', cursive;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


.backButton:hover {
  background-color: #0035cc;
}


/* Dark Mode Styles */
body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}


body.dark-mode .topnav {
  background-color: #2d2d2d;
}


body.dark-mode .topnav a:hover {
  color: #66b3ff;
}


body.dark-mode .mainText,
body.dark-mode .settingsTitle,
body.dark-mode .loginTitle {
  color: #66b3ff;
}


body.dark-mode .description {
  color: #8ab3e6;
}


body.dark-mode .loginContainer,
body.dark-mode .settingsContainer {
  background-color: #2d2d2d;
  color: #e0e0e0;
}


body.dark-mode .dashboardContent {
  background-color: #2d2d2d;
}


body.dark-mode .addPasswordSection,
body.dark-mode .savedPasswordsSection,
body.dark-mode .settingsSection {
  background-color: #3d3d3d;
}


body.dark-mode .passwordItem {
  background-color: #4d4d4d;
  border-color: #5d5d5d;
}


body.dark-mode .passwordValue,
body.dark-mode .infoField span {
  background-color: #4d4d4d;
  border-color: #5d5d5d;
  color: #e0e0e0;
}


body.dark-mode .inputGroup input {
  background-color: #4d4d4d;
  border-color: #5d5d5d;
  color: #e0e0e0;
}


body.dark-mode .inputGroup input:focus {
  border-color: #66b3ff;
}


body.dark-mode .inputGroup label,
body.dark-mode .passwordField strong,
body.dark-mode .infoField label,
body.dark-mode .themeToggle label {
  color: #8ab3e6;
}


body.dark-mode .settingsSection h3,
body.dark-mode .dashboardContent h3,
body.dark-mode .addPasswordSection h4,
body.dark-mode .savedPasswordsSection h4 {
  color: #66b3ff;
}