.container {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 16px rgba(0, 213, 230, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  user-select: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
  user-select: text;
}

p.description {
  text-align: center;
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-top: 0;
  margin-bottom: 1.5rem;
  user-select: text;
}

label.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

textarea,
pre#output {
  font-family: monospace;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
}

textarea {
  box-sizing: border-box;
  width: 100%;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1rem;
  color: #ffffff;
  resize: vertical;
  user-select: text;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1rem;
}

textarea::placeholder {
  font-family: monospace;
  color: #a0a0a0;
  opacity: 1;
}

textarea:focus {
  outline: none;
  border-color: #1adf06;
  box-shadow: 0 0 6px rgba(39, 245, 9, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

pre#output {
  box-sizing: border-box;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  min-height: 50px;
  color: #ffffff;
  white-space: pre-wrap;
  word-wrap: break-word;
  user-select: text;
  transition: background 0.3s ease;
}

.buttons-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

button {
  flex: 1;
  padding: 1rem;
  background: linear-gradient(90deg, #00bfcf, #1adf06);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease, outline 0.3s ease, transform 0.15s ease;
  min-width: 120px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

button:disabled {
  background: rgba(0, 213, 230, 0.3);
  cursor: not-allowed;
  transform: none;
}

button:hover:not(:disabled) {
  background: #1adf06;
  transform: scale(1.03);
}

button:focus-visible {
  outline: 2px solid #1adf06;
  outline-offset: 2px;
}

.link {
  text-align: center;
  margin-bottom: 1rem;
  user-select: none;
}

.link a {
  color: #00d5e6;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  user-select: text;
  transition: color 0.3s ease;
}

.link a:hover,
.link a:focus {
  color: #1adf06;
}

.ps-text {
  text-align: center;
  font-size: 0.9rem;
  color: #b0b0b0;
  margin-top: 2rem;
  user-select: none;
}

.ps-text a {
  color: #00d5e6;
  text-decoration: none;
  user-select: text;
}

.ps-text a:hover,
.ps-text a:focus {
  color: #1adf06;
}

#copyConfirmation {
  text-align: center;
  margin-top: 0.75rem;
  color: #1adf06;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.5s ease;
  user-select: none;
  height: 1.2rem;
}

#copyConfirmation.show {
  opacity: 1;
}

#helpToggle {
  margin: 1rem 0;
  text-align: center;
}

#helpToggle button {
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: linear-gradient(90deg, #00bfcf, #1adf06);
  border-radius: 8px;
  border: none;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#helpToggle button:hover,
#helpToggle button:focus-visible {
  background: #1adf06;
}

#helpSection {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  color: #b0b0b0;
  font-size: 0.9rem;
  display: none;
  user-select: text;
}

.image-cleaner {
  width: 300px;
  max-width: 100%;
  opacity: 1.0;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.15));
  transition: transform 0.2s ease;
  margin: 0 auto 1rem auto;
  display: block;
  border-radius: 12px;
}

.image-cleaner:hover {
  transform: scale(1.05);
}

.image-caption {
  text-align: center;
  font-size: 0.85rem;
  color: #b0b0b0;
  margin-bottom: 1.5rem;
  user-select: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.logo {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.25rem;
}

@media (max-width: 600px) {
  .container {
    padding: 1.5rem;
  }
  h1 {
    font-size: 2rem;
  }
  .buttons-row {
    flex-direction: column;
  }
  button {
    flex: none;
    width: 100%;
  }
}