body {
  margin: 20px;
  font-family: Arial, sans-serif;
  background: #333; /* Dark by default */
  color: #eee;
  position: relative; /* needed for absolute-positioned elements */
}

/* Header bar: toggle on the left, GitHub link on the right */
.header-bar {
  display: flex;
  justify-content: space-between; /* left and right alignment */
  align-items: center;           /* vertical centering */
  margin-bottom: 20px;
}

.github-profile, .code, .docs {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
}

.github-profile .mdi, .code .material-icons, .docs .material-icons {
  font-size: 24px;
}

h1, h2 {
  margin-bottom: 10px;
  color: inherit;
}

form {
  background: #444;
  border: 1px solid #555;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
}

label {
  display: inline-block;
  width: 180px;
  margin-bottom: 5px;
}

input[type="text"],
input[type="number"] {
  width: 200px;
  margin-bottom: 10px;
  border-radius: 5px; /* Rounded edges */
}

button {
  background-color: #007bff;
  border: none;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 3px;
}

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

#printers-list, #result {
  background: #444;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 10px;
}

hr {
  border: none;
  border-bottom: 1px solid #555;
  margin: 20px 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul li {
  margin: 5px 0;
}

/* Toggle container for icons and switch */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.theme-switch .material-icons {
  font-size: 24px;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #bbb;
  transition: .4s;
  border-radius: 34px;
}

.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: #007bff;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Light mode (when .dark-mode NOT present) */
html:not(.dark-mode) body {
  background: #f6f6f6;
  color: #333;
}

html:not(.dark-mode) form {
  background: #fff;
  border: 1px solid #ccc;
}

html:not(.dark-mode) hr {
  border-bottom-color: #ccc;
}

html:not(.dark-mode) #printers-list,
html:not(.dark-mode) #result {
  background: #fff;
}