<style type="text/css">
 :root {
      --bg: #002000;
      --text: #00ff40;
      --border: #006000;
      --scanline: rgba(0, 120, 0, 0.1);
    }

    body {
      margin: 0;
      padding: 20px;
      background-color: #000;
      font-family: 'Courier New', monospace;
      color: var(--text);
      font-size: 16px;
      line-height: 1.5;
      text-shadow: 0 0 3px var(--text);
    }

    .terminal {
      background-color: var(--bg);
      border: 6px solid var(--border);
      border-radius: 8px;
      padding: 20px;
      box-shadow:
        0 0 15px rgba(0, 255, 60, 0.4),
        inset 0 0 20px rgba(0, 255, 60, 0.2);
      max-width: 800px;
      margin: 40px auto;
      position: relative;
      overflow: hidden;
    }

    .terminal::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        var(--scanline) 1px,
        var(--scanline) 2px
      );
      pointer-events: none;
      opacity: 0.7;
      z-index: 1;
    }

    h1 {
      color: #00ff60;
      text-shadow: 0 0 3px #00ff60;
      margin-top: 0;
      margin-bottom: 15px;
      font-size: 1.8em;
    }

    h2 {
      color: #00ff60;
      text-shadow: 0 0 3px #00ff60;
      margin-top: 20px;
      margin-bottom: 10px;
      font-size: 1.4em;
    }

    p {
      margin-bottom: 8px;
    }

    #drop-zone {
      border: 1px dashed #00ff60;
      border-radius: 10px;
      padding: 40px;
      text-align: center;
      font-size: 18px;
      cursor: pointer;
      margin-bottom: 20px;
      background-color: #001000;
      color: #00ff60;
      box-shadow: 0 0 4px rgba(0, 255, 60, 0.4);
    }

    #drop-zone.highlight {
      border-color: #00ff80;
      background-color: #001800;
      box-shadow: 0 0 6px rgba(0, 255, 60, 0.6);
    }

    #file-list {
      margin-top: 20px;
      color: #00ff60;
    }

    #file-list p {
      margin: 4px 0;
    }

    button {
      background-color: #001500;
      border: 1px solid #008000;
      color: #00ff40;
      font-family: 'Courier New', monospace;
      padding: 8px 16px;
      border-radius: 4px;
      cursor: pointer;
      box-shadow: 0 0 4px rgba(0, 255, 60, 0.3);
    }

    button:hover {
      box-shadow: 0 0 6px rgba(0, 255, 60, 0.6);
    }

    input[type="file"] {
      display: none;
    }
    
    .terminal-output {
  background-color: #002000;
  border: 4px solid #006000;
  border-radius: 8px;
  padding: 20px;
  box-shadow:
    0 0 15px rgba(0, 255, 60, 0.4),
    inset 0 0 20px rgba(0, 255, 60, 0.2);
  max-width: 800px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  color: #00ff40;
  font-size: 14px;
  line-height: 1.5;
  text-shadow: 0 0 3px #00ff40;
}

.terminal-output::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0, 120, 0, 0.1) 1px,
    rgba(0, 120, 0, 0.1) 2px
  );
  pointer-events: none;
  opacity: 0.7;
  z-index: 1;
}

.terminal-output h3 {
  color: #00ff60;
  text-shadow: 0 0 3px #00ff60;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4em;
}

.terminal-output p {
  margin-bottom: 8px;
}

.terminal-output .cover-image {
  max-width: 300px;
  max-height: 300px;
  border: 1px solid #008000;
  box-shadow: 0 0 4px rgba(0, 255, 60, 0.3);
}

.terminal-output .cover-image {
  max-width: 300px;
  max-height: 300px;
  border: 1px solid #008000;
  box-shadow: 0 0 4px rgba(0, 255, 60, 0.3);
}

.terminal-output .meta-form {
  margin-top: 15px;
}

.terminal-output .meta-form button {
  background-color: #001500;
  border: 1px solid #008000;
  color: #00ff40;
  font-family: 'Courier New', monospace;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 255, 60, 0.3);
}

.terminal-output .meta-form button:hover {
  box-shadow: 0 0 6px rgba(0, 255, 60, 0.6);
}
.terminal-input {
  width: 80%;
  background-color: #001500;
  border: 1px solid #008000;
  color: #00ff40;
  font-family: 'Courier New', monospace;
  padding: 6px 10px;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0, 255, 60, 0.3);
  margin-top: 4px;
}

.terminal-input:focus {
  outline: none;
  box-shadow: 0 0 6px rgba(0, 255, 60, 0.6);
}

.terminal-checkbox {
  accent-color: #00ff40;
  background-color: #002000;
  border: 1px solid #008000;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0, 255, 60, 0.3);
  margin-right: 8px;
}

.terminal-checkbox:focus {
  outline: none;
  box-shadow: 0 0 6px rgba(0, 255, 60, 0.6);
}

.terminal-button-link {
  display: inline-block;
  background-color: #001500;
  border: 1px solid #008000;
  color: #00ff40;
  font-family: 'Courier New', monospace;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 0 4px rgba(0, 255, 60, 0.3);
}

.terminal-button-link:hover {
  box-shadow: 0 0 6px rgba(0, 255, 60, 0.6);
}

/* === Блок "Все теги" в терминальном стиле === */

.all-tags-container {
    margin-top: 15px;
}

.all-tags-header {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    color: #00ff60;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-shadow: 0 0 3px #00ff60;
}

.all-tags-header .arrow {
    transition: transform 0.1s ease;
}

.all-tags-content {
    margin-top: 8px;
    padding: 10px;
    background-color: #001500;
    border: 1px solid #008000;
    border-radius: 4px;
    color: #00ff40;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    text-shadow: 0 0 3px #00ff40;
    box-shadow: 0 0 4px rgba(0, 255, 60, 0.3);
}

.all-tags-content pre {
    margin: 0;
    overflow-x: auto;
    white-space: pre;
}

#progress-container {
  margin: 15px 0;
  font-family: 'Courier New', monospace;
  color: var(--text);
  font-size: 14px;
}

.progress-label {
  font-size: 0.9em;
  margin-bottom: 8px;
  color: #00ff60;
  text-shadow: 0 0 3px #00ff60;
}

.progress-bar-outer {
  width: 100%;
  height: 12px;
  background-color: #001500;
  border: 1px solid #006000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 4px rgba(0, 255, 60, 0.3);
  position: relative;
}

.progress-bar-inner {
  height: 100%;
  background: linear-gradient(
    90deg,
    #008000,
    #00ff40,
    #00cc40
  );
  border-radius: 5px;
  transition: width 0.1s ease;
  width: 0%;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 6px rgba(0, 255, 60, 0.4);
}

/* Эффект сканирования для прогресс‑бара */
.progress-bar-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
  animation: scan 2s linear infinite;
  opacity: 0.3;
}

@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-percent {
  text-align: right;
  font-size: 0.85em;
  color: #00ff60;
  margin-top: 6px;
  text-shadow: 0 0 3px #00ff60;
  font-weight: bold;
}


</style>