body {
  font-family: sans-serif;
  padding: 2rem;
  max-width: 700px;
  margin: auto;
  font-size: 15px;
  line-height: 1.6;
}

textarea,
input,
select,
button {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
  resize: none;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

button {
  cursor: pointer;
}

code {
  word-break: break-word;
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  display: block;
}

footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 14px;
  color: #888;
}

h1 {
  font-size: 40px;
  margin-bottom: 1rem;
  color: #fff;
}

h2 {
  font-size: 20px;
  margin: 1rem 0;
  color: #fff;
}

.faq-box {
  background-color: #1e1e1e;
  border-left: 4px solid #0077cc;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.faq-box strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 15px;
}

.faq-box p {
  margin: 0;
  font-size: 13px;
  color: #ccc;
}

.no-js-warning {
  background: #ffdddd;
  padding: 1rem;
  border: 1px solid #cc0000;
  color: #700;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.info-box {
  background-color: #1e2a38;
  border-left: 4px solid #3399ff;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0 2rem;
}

.instructions {
  background-color: #1b1b1b;
  border-left: 4px solid #555;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

a {
  color: #66b3ff;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

.dark-mode textarea,
.dark-mode input,
.dark-mode select,
.dark-mode button {
  background-color: #1e1e1e;
  color: #f0f0f0;
  border: 1px solid #444;
}

.dark-mode code {
  background-color: #1b1b1b;
}

.title-link {
  text-decoration: none;
  color: inherit;
}

#link {
  margin-top: 1rem;
  word-break: break-word;
}

.decrypted-box {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 2rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #f0f0f0;
  border-left: 4px solid #3399ff;
}

#linkBox {
  display: none;
  margin-top: 1rem;
}

#copyBtn {
  margin-top: 0.5rem;
  width: auto;
}

input#decryptPw,
button#decryptBtn {
  width: auto;
  margin-right: 10px;
  display: inline-block;
}

#toastContainer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.toast {
  background-color: #222;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background-color: #2ecc71;
}

.toast-error {
  background-color: #e74c3c;
}

.toast-info {
  background-color: #3498db;
}

.toast-warning {
  background-color: #f39c12;
}

#revealBtn {
  background-color: #3399ff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  margin: 2rem auto;
  transition: background-color 0.3s;
}

#revealBtn:hover {
  background-color: #227acc;
}
