/* Global body font & background */
body {
  font-family: 'Aptos', 'Inter', 'Segoe UI', Arial, sans-serif;
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
}

p {
  font-size:16px; 
  color:#333; 
  margin-bottom:10px;
}

ul li {
  font-size:16px; 
  color:#333; 
  margin-bottom:8px;
}

/* Top navigation menu */
.top-menu {
  display: flex;
  justify-content: center;
  background-color: #007BFF;
  padding: 10px 0;
  gap: 15px;
}

.top-menu .menu-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.top-menu .menu-link:hover {
  background-color: #0056b3;
}

/* Main content container */
.container {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  width: 600px;
  margin: 20px auto; /* center */
}

/* Buttons */
button {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
  background-color:#28A745;
}

button:hover {
  opacity: 0.9;
}

/* Input field */
input[type="text"], 
input[type="password"],
textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #a7a4a4;
  box-sizing: border-box;
}

/* Result boxes */
.result {
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 5px;
  min-height: 40px;
  margin-bottom: 10px;
  font-size: 14px;
  word-wrap: break-word;
  border: 1px solid #a7a4a4;
}

/* Info page link button */
.link-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.link-button:hover {
  background-color: #0056b3;
}

.login-info {
  display: flex;
  justify-content: right; /* aligns items to the left */
  align-items: right;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 5px;
  min-height: 40px;
  margin-bottom: 10px;
  gap: 10px; /* space between username and button */
  font-size: 14px;
}

#LogoutButton {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  background-color: #dc3545;
  color: white;
  cursor: pointer;
  width: auto;          /* make width fit content */
  min-width: 0;         /* remove inherited min-width if any */
}

#LogoutButton:hover {
  background-color: #c82333;
}

/* Disabled state */
#LogoutButton:disabled {
  background-color: #aaa;      /* gray color */
  cursor: not-allowed;
  opacity: 0.7;
}


 table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
  th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
  }
  th {
    background-color: #f2f2f2;
  }


/* toggle styling */

/* The switch container */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.toggle-wrapper {
  display: flex;
  align-items: center; /* vertically center toggle and text */
  gap: 8px;            /* space between toggle and text */
  /*font-family: Arial, sans-serif;*/
}

.slider-toggle {
  --w: 32px;   /* change ONLY this to make it narrower/wider */
  --h: 15px;
  --k: 13px;

  position: relative;
  width: var(--w);
  height: var(--h);
}

.slider-toggle input {
  display: none;
}

.slider-toggle label {
  display: block;
  width: 100%;
  height: 100%;
  background-color: red;
  border-radius: calc(var(--h) / 2);
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
}

.slider-toggle label::after {
  content: "";
  position: absolute;
  width: var(--k);
  height: var(--k);
  left: 1px;
  top: 1px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.slider-toggle input:checked + label {
  background-color: green;
}

.slider-toggle input:checked + label::after {
  transform: translateX(calc(var(--w) - var(--k) - 1px));
}