body {
  background: #f1f1f1 !important;
  color: #333 !important;
  padding: 0;
  margin: 0;
  min-height: 70vh;
}
#page-wrapper {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}
#page-wrapper main {
  flex: 1;
}
h1 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight:bold;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  margin: auto;
}
.form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
label {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  font-weight:bold;
}

input[type="text"],
input[type="number"],
select,
textarea {
  padding: 0.5rem;
  background: ddd#222;
  color: #333;
  border: 1px solid #444;
  border-radius: 8px;
}

input[type="checkbox"] {
  transform: scale(1.5) !important;
  margin-right: 0.5rem;
}

button {
  padding: 0.6rem 1rem;
  background: #007acc;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #005fa3;
}

.actions a {
  color: #4af;
  text-decoration: none;
  margin-right: 0.75rem;
}

.tabs {
  list-style: none;
  padding: 0;
  display: flex;
  margin-bottom: 1rem;
}
.tabs li {
  margin-right: 10px;
}
.tabs a {
  padding: 6px 12px;
  background: #333;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}
.tabs a.active, .tabs a:hover {
  background: #555;
}
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  margin-right: 10px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #666;
  transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #0f0;
}
input:checked + .slider:before {
  transform: translateX(22px);
}
.switch-inline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  width: auto !important;
}
form > label {
  display: flex;
  flex-direction: column;
}
.menuform {
  max-width: 600px;
  margin: 40px auto;
  background: #f1f1f1;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #111;
}
.menuform1000 {
  max-width: 1000px;
}
table.w3-round-large {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  padding:10px;
  gap: 6px;
}

@media (min-width: 600px) {
  .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.filter-bar {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
  gap: 12px;
  padding: 12px;
  align-items: start;
}

.filter-group {
  display: flex;
  flex-direction: column;
  max-width: 200px;
}

.filter-bar label {
  font-weight: bold;
  font-size: 0.85em;
  margin-bottom: 4px;
  max-width: 100%;
}

.filter-bar select,
.filter-bar input {
  width: 100%;
  max-width: 200px;
  padding: 4px;
}




/* DARK MODE W3.CSS */
body.dark-mode,
body.dark-mode .w3-white,
body.dark-mode .w3-card,
body.dark-mode .w3-card-2,
body.dark-mode .w3-card-4,
body.dark-mode .w3-container,
body.dark-mode .w3-panel,
body.dark-mode .w3-hover-light-grey:hover {
  background-color: #1e1e1e !important;
  color: #f1f1f1 !important;
}

body.dark-mode .w3-button {
  background-color: #333 !important;
  color: #f1f1f1 !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: #2b2b2b !important;
  color: #fff !important;
  border: 1px solid #444 !important;
}



footer.footer-bar {
  background: #000;
  color: #aaa;
  width: 100%;
  padding-top: 10px;  /* Push text below the fade area */
  padding-bottom: 10px;
  border-top:5px solid #555
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

/* Link contrast in footer */
.footer-bar a {
  color: #66b3ff;
  text-decoration: underline;
}
.footer-bar a:hover {
  color: #ffffff;
}
.MEX-bold {
  font-weight:bold;
}

