.custom-code-container {
  background-color: #282A36;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Fira Code', monospace;
  margin: 20px auto;
  padding: 16px;
  max-width: 100%;
  max-height: 160px;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  font-size: 14px;
  white-space: normal;
  transition: max-height 0.3s ease;
}

/* SCAN OUTPUT CONTAINER: remove inside margin */
#threatscan-output {
      margin: 0 0 15px 0;
    padding: 10px 2px 10px 15px;
}

/* EACH LINE */
.custom-line {
  margin: 0;
  padding: 0;
}


/* Optional: Dark custom scrollbar */
.custom-code-container::-webkit-scrollbar {
  width: 6px;
}

.custom-code-container::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 0px;
}

.custom-code-container::-webkit-scrollbar-track {
  background-color: #1e1e1e;
}



.custom-code {
  white-space: pre-wrap;
  font-size: 14px;
  color: #d4d4d4;
  margin: 0;
  padding: 0;
}

.custom-line {
  margin: 0;
  padding: 0;
}

.variable {
  color: #9cdcfe;
}

.string {
  color: #ce9178;
}

.number {
  color: #dcdcaa;
}

.boolean {
  color: #4ec9b0;
}

.risk-low {
  color: #4ec9b0;
}

.risk-moderate {
  color: #d7ba7d;
}

.risk-high {
  color: #f44747;
}

.comment {
  color: #6a9955;
  font-style: italic;
}

.final-warning {
  color: #f44747;
  font-weight: bold;
  margin-top: 20px;
}
#show-threatscan-button {
  font-size: 10px; /* smaller text */
  background-color: #2c2c2c; /* subtle dark grey */
  color: #cccccc; /* soft grey text */
  border: 1px solid #444; /* thin border to make it visible */
  padding: 6px 10px;
  border-radius: 4px;
  margin: 0 0 10px 0 !important;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#show-threatscan-button:hover {
  background-color: #3a3a3a; /* slightly lighter on hover */
  color: #ffffff; /* white text on hover */
}
.threatscan-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: #111;
  color: #fff;
}

.threatscan-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.threatscan-banner-text strong {
  font-size: 1rem;
  line-height: 1.3;
}

.threatscan-banner-text span {
  font-size: 0.8rem;
  line-height: 1.45;
  opacity: 0.8;
}

.threatscan-banner-button {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
.threatscan-banner-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.threatscan-button-icon {
  width: 6em;
  height: 6em;
  flex-shrink: 0;
}
.threatscan-banner-button:hover {
  background: #fff;
  color: #111;
}

@media (max-width: 700px) {
  .threatscan-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .threatscan-banner-button {
    width: 100%;
  }
}
