body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #000000;
}

body.dark {
  background-color: #1e1e1e;
  color: #ffffff;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  padding: 10px;
  position: relative;
}

body.dark header {
  background-color: #2a2a2a;
}

#siteTitle {
  font-size: 1.5em;
  font-weight: bold;
  color: black;
  text-decoration: none;
}

body.dark #siteTitle {
  color: white;
}

#darkModeToggle {
  position: absolute;
  right: 10px;
  top: 10px;
  background-color: #bbb;
  color: #000;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

body.dark #darkModeToggle {
  background-color: #444;
  color: #fff;
}

h2 {
  text-align: center;
}

textarea,
.view-output {
  display: block;
  margin: 10px auto;
  width: 80%;
  height: 300px;
  padding: 10px;
  font-family: monospace;
  white-space: pre;
  overflow-x: auto;
  resize: vertical;
  box-sizing: border-box;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  color: #000;
}

body.dark textarea,
body.dark .view-output {
  background-color: #2a2a2a;
  border: 1px solid #555;
  color: #fff;
}

.input-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px auto;
  width: 80%;
}

input[type="text"],
input[type="password"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 45%;
  box-sizing: border-box;
  background-color: #f9f9f9;
  color: #000;
}

body.dark input[type="text"],
body.dark input[type="password"] {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #555;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

button {
  background-color: #999;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button:hover {
  background-color: #777;
}

#linkArea {
  display: none;
  margin: 10px auto;
  width: 80%;
  text-align: center;
}

#pasteLink {
  width: 60%;
  padding: 8px;
  margin-right: 5px;
}

.error {
  color: red;
  text-align: center;
}
