/* Base container */
.anonymator-tech-areas {
  font-family: PPMori, Arial, sans-serif;
  font-weight: 400;
  margin: 1em 0;
  display: flex;
  gap: 12px;
  position: relative;
}
@media (max-width: 600px) {
  .anonymator-tech-areas {
    flex-direction: column;
  }
}

/* Input and output wrappers */
.anonymator-tech-input-wrapper,
.anonymator-tech-output-wrapper {
  flex: 1;
  width: 100%;
  padding: 40px 60px;
  border-radius: 12px;
  border: 1px solid transparent;
  box-sizing: border-box;
  background-color: var(--subtle-black-5);
}
body.dark .anonymator-tech-input-wrapper {
  background-color: var(--subtle-white-5);
}
.anonymator-tech-output-wrapper {
  background-color: var(--subtle-white-5);
}
@media (max-width: 1023px) {
  .anonymator-tech-input-wrapper,
  .anonymator-tech-output-wrapper {
    padding: 40px;
  }
}

/* Labels and descriptions */
.anonymator-tech-label {
  font-family: 'GeistMono', monospace;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  background-color: var(--subtle-white-10);
  border-radius: 6px;
  padding: 2px 8px 0;
  display: inline-block;
  margin-bottom: 30px;
  white-space: nowrap;
  margin-right: 20px;
}

.label-wrapper {
  display: flex;
  justify-content: space-between;
}

.anonymator-tech-description {
  font-family: 'GeistMono', monospace;
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
}
@media (max-width: 1023px) {
  .anonymator-tech-description {
    display: none;
  }
}

/* Textarea and output common */
.anonymator-tech-input,
.anonymator-tech-output {
  width: 100%;
  height: 300px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background-color: transparent;
  color: var(--bde-body-text-color);
  font-size: 13px;
  line-height: 180%;
  letter-spacing: 1px;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-y:auto;
      scrollbar-width: thin;
    scrollbar-color: var(--bde-brand-primary-color) transparent;
}
.anonymator-tech-input {
  resize: vertical;
}
body.dark .anonymator-tech-input {
  border-color: #000;
}
@media (max-width: 1023px) {
  .anonymator-tech-input,
  .anonymator-tech-output {
    padding: 8px;
  }
}

/* Send button styling */
.anonymator-tech-send {
    margin-top: 8px;
    padding: 0.5em 1em;
    background: var(--subtle-white-5);
    color: var(--bde-body-text-color);
    font-size: 13px;
    line-height: 150%;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background 150ms ease, transform 100ms ease;
}
.anonymator-tech-send:hover {
  background: var(--subtle-white-5);
  border-color: rgba(255,255,255,0.2);
}
.anonymator-tech-send:active {
  background: var(--bde-background-color);
  color: #000;
  transform: translateY(1px);
}
.anonymator-tech-send:focus-visible {
  outline: 2px solid var(--bde-body-text-color);
  outline-offset: 3px;
}

/* Chrome, Firefox, Opera, Safari 10.1+ */
.anonymator-tech-input::placeholder {
  color: var(--bde-body-text-color);
  opacity: 1; /* Firefox reduziert sonst die Opazität automatisch */
}

/* Internet Explorer 10-11 */
.anonymator-tech-input:-ms-input-placeholder {
  color: var(--bde-body-text-color);
}

/* Microsoft Edge */
.anonymator-tech-input::-ms-input-placeholder {
  color: var(--bde-body-text-color);
}

/* Firefox 18- */
.anonymator-tech-input:-moz-placeholder {
  color: var(--bde-body-text-color);
  opacity: 1;
}

/* Firefox 19+ */
.anonymator-tech-input::-moz-placeholder {
  color: var(--bde-body-text-color);
  opacity: 1;
}


/* Spinner overlay */
.anonymator-tech-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: all 0.5s ease-in-out;
  z-index: 1;
}

/* Log console */
.anonymator-tech-log {
  display: none;
    margin-top: 1em;
    background: #0b0b252e;
    color: var(--bde-brand-primary-color);
    font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
    font-size: 13px;
    padding: 10px;
    border-radius: 8px;
    height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bde-brand-primary-color) transparent;
}

/* Sobald die Klasse .active dazukommt, wird es angezeigt */
.anonymator-tech-log.active {
  display: block;
}

.anonymator-tech-console-log {
  margin: 0;
  white-space: pre-wrap;
}

/* WebKit scrollbar */
.anonymator-tech-log::-webkit-scrollbar {
  width: 8px;
}
.anonymator-tech-log::-webkit-scrollbar-track {
  background: #000;
}
.anonymator-tech-log::-webkit-scrollbar-thumb {
  background-color: var(--bde-brand-primary-color);
  border-radius: 4px;
  border: 2px solid #000;
}

/* Styles for the wrapped log-text blocks */
.log-text {
    margin: 4px 0 8px 12px;
    padding: 8px 8px;
    background: var(--subtle-white-5);
    font-style: italic;
    display: block;
    color: var(--bde-body-text-color);
    line-height: 1.5em;
    border-radius: 8px;
}

.anonymator-tech-spinner.pulsate {
  animation: pulsate 1s ease-out infinite;
}

@keyframes pulsate {
  0%   { transform: scale(1);   opacity: 1;   }
  50%  { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1);   opacity: 1;   }
}

.anonymator-tech-error {
  color: #ff4d4f;
  font-weight: bold;
  padding: 16px;
  background: rgba(255, 77, 79, 0.1);
  border: 1px solid #ff4d4f;
  border-radius: 6px;
}

/* Log-Einträge fade-in */
.log-entry {
  font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
}

.fade-entry {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-entry.show {
  opacity: 1;
  transform: translateY(0);
}

/* PROGRESS-BAR */
.anonymator-tech-progress {
  display: none;
  align-items: center;
  margin: 3em 0;
}

.anonymator-tech-progress.active {
  display: flex;
}

.anonymator-tech-progress .step {
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
    flex: 0 0 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    color: var(--bde-body-text-color);
}

.dark .anonymator-tech-progress .step {
    opacity: 1;
}

.anonymator-tech-progress .step svg {
  transition: filter 0.3s ease;
  width: 60px;
  height: 60px;
  filter: drop-shadow(0px 0px 10px transparent);
}


/* Beschriftung unter den Icons */
.anonymator-tech-progress .step-label {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bde-body-text-color);
  white-space: nowrap;
}

/* Active-Step Label etwas auffälliger */
.anonymator-tech-progress .step.active .step-label {
  color: var(--bde-brand-primary-color);
  font-weight: bold;
}

.anonymator-tech-progress .connector {
  flex: 1;
  height: 2px;
  background: transparent;   /* Grundlinie ausgeblendet */
  position: relative;
  overflow: hidden;
  margin: 0 8px 15px 8px;             /* optional: Abstand zu den Kreisen */
}

/* Füll-Linie, wächst von 0→100% */
.anonymator-tech-progress .connector-fill {
  width: 0;
  height: 100%;
  background: var(--bde-body-text-color);
  transition: width 0.5s ease;  /* Dauer anpassen */
  position: absolute;
  top: 0; left: 0;
}

/* wenn aktiv: volle Breite */
.anonymator-tech-progress .connector.active .connector-fill {
  width: 100%;
}

/* Highlight-Zustand */
.anonymator-tech-progress .step.active {
  transform: scale(1.2);
  opacity: 1;
}

.anonymator-tech-progress .step.active svg {
  filter: drop-shadow(0px 0px 10px var(--bde-brand-primary-color));
}

.dark .anonymator-tech-progress .step.active svg {
    filter: none;
}


/* Mobile: Icons verkleinern */
@media (max-width: 768px) {
  .anonymator-tech-progress .step {
    flex: 0 0 60px;
    height: 60px;
    width: 60px;
  }
}

/* Portrait-Mobile: Progress-Bar komplett ausblenden */
@media (max-width: 600px) and (orientation: portrait) {
  .anonymator-tech-progress {
    display: none;
  }
}