/* codeblock stlyes */
div.code-collapse div.highlight {
    margin-bottom: unset;
}

div.collapse-wrapper {
    margin-bottom: 15px;
}

.highlighter-rogue > .highlight {
  background-color: #22272e;
}

.highlighter-rouge pre {
  background: #22272e !important;
}

.highlighter-rouge code {
  background-color: #22272e;
  color: #e6e6e6;
}

div .highlight {
  border: 1px solid white;
  border-radius: 5px;
}

.highlighter-rouge .ne,
.highlighter-rouge .nf {
  color: #ff6666bb;
}

.highlighter-rouge .s,
.highlighter-rouge .se,
.highlighter-rouge .s1,
.highlighter-rouge .s2,
.highlighter-rouge .si {
  color: #e46;
}

.highlighter-rouge .mi,
.highlighter-rouge .nb {
  color: #3cc;
}

.highlighter-rouge .nt,
.highlighter-rouge .nn {
  color: #77f;
}

.highlighter-rouge .err {
  background-color: unset;
}

/* console last to override default codeblocks */
div.highlighter-rouge.language-peda:before,
div.highlighter-rouge.language-console:before {
  content: "";
  width: 10px;
  height: 10px;
  margin: -20px 0 0 5px;
  border-radius: 5px;
  background:  #f25d2b;
  box-shadow: 0 0 0 1px #595953, 15px 0 #7d7871, 15px 0 0 1px #595953, 30px 0 #7d7871, 30px 0 0 1px #595953;
  position: absolute;
}

div.highlighter-rouge.language-peda,
div.highlighter-rouge.language-console {
  padding: 26px 0px 0px;
  border-radius: 5px;

  /* last one defines what's below the bar - eef is original */
  background: linear-gradient(#504b45, #3c3b37 20px, #3c3b37 20px, #3c3b37 21px, #380428 21px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}

div.highlighter-rouge.language-peda > div.highlight,
div.highlighter-rouge.language-peda pre,
div.highlighter-rouge.language-peda code,
div.highlighter-rouge.language-console > div.highlight,
div.highlighter-rouge.language-console pre,
div.highlighter-rouge.language-console code {
  border: none;
  background-color: #380428 !important;
  color: #ffd;
}

div.highlighter-rouge.language-console.windows-console {
  padding: 26px 0px 0px;
  border-radius: 5px;

  /* last one defines what's below the bar - eef is original */
  background: linear-gradient(#504b45, #3c3b37 20px, #3c3b37 20px, #3c3b37 21px, #012456 21px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}

div.highlighter-rouge.language-console.windows-console pre,
div.highlighter-rouge.language-console.windows-console code {
  background-color: #012456 !important;
  color: #fff;
}

.language-console .gp {
  color: #8AE234;
  font-weight: bold;
}

.language-console .nt {
  color: #99f;
}

.language-console .go {
  color: #fff;
}

.language-console .highlight {
  border: none;
}

.language-console .s,
.language-console .s2,
.language-console .nn {
  color: #2ad;
}

.netexec-logfail {
  color: #ef2020;
}

.netexec-logpurplefail {
  color: #5d2cb9;
}

.netexec-logsuccess,
.sqlmap-info {
  color: #8ae234;
}

.netexec-shareenum,
.netexec-pwned,
.sqlmap-warn,
.sqlmap-header-yellow {
  color: #fffeb0;
}

.netexec-logmessage,
.netexec-protocol {
  color: #2c74b9;
}

.netexec-errortimestamp {
  color: #006050;
  font-weight: bold;
}

.netexec-errorfile {
  color: #a0a0a0;
}

.feroxbuster-blue,
.diff-lines {
  color: #80b0FF;
}

.feroxbuster-green,
.diff-added {
  color: #10d840;
}

.feroxbuster-yellow {
  color: #FFF800;
}

.feroxbuster-red,
.diff-removed {
  color: #FF0000;
}

.chat-speaker {
  font-style: italic;
  color: #d4a656;
}

.feroxbuster-cyan {
  color: #00FFFF;
}

.language-peda .go {
  color: white;
}

.sqlmap-fail {
  color: white;
  background-color: red;
}

.sqlmap-timestamp,
.sqlmap-header-blue {
  color: #3cc;
}

.sqlmap-error {
  color: #d01010;
}

.sqlmap-header-red {
  color: #FFFeb0;
  background-color: #FF0000A0;
}


/* Base Disclaimer Styles - Shared functionality */
div.highlighter-rouge.language-console[class*="-disclaimer"] > div.highlight {
  position: relative;
  margin-bottom: 20px;
}

/* Base disclaimer button positioning and common styles */
div.highlighter-rouge.language-console[class*="-disclaimer"] > div.highlight::after {
  position: absolute;
  top: -20px;
  right: 8px;
  background: rgba(45, 55, 72, 0.9);
  color: #e2e8f0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: help;
  z-index: 30;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid rgba(74, 85, 104, 0.8);
}

/* Base tooltip positioning and common styles */
div.highlighter-rouge.language-console[class*="-disclaimer"] > div.highlight::before {
  position: absolute;
  bottom: 40px;
  right: 8px;
  background: rgba(26, 32, 44, 0.95);
  color: #e2e8f0;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  white-space: normal;
  border: 1px solid rgba(74, 85, 104, 0.8);
}

/* Show tooltip on hover */
div.highlighter-rouge.language-console[class*="-disclaimer"] > div.highlight:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Change button color on hover */
div.highlighter-rouge.language-console[class*="-disclaimer"] > div.highlight:hover::after {
  background: rgba(74, 85, 104, 0.9);
}

/* Specific disclaimer content - sshpass */
div.highlighter-rouge.language-console.sshpass-disclaimer > div.highlight::after {
  content: "sshpass disclaimer";
}

div.highlighter-rouge.language-console.sshpass-disclaimer > div.highlight::before {
  content: "sshpass is a really nice tool for blog posts about CTFs because it makes it very clear what is happening. It should never be used with real production credentials for security reasons.";
}

/* Specific disclaimer content - rlwrap */
div.highlighter-rouge.language-console.rlwrap-disclaimer > div.highlight::after {
  content: "rlwrap info";
}

div.highlighter-rouge.language-console.rlwrap-disclaimer > div.highlight::before {
  content: "rlwrap provides quality of life upgrades for the reverse shell such as left and right arrow to move within a line, and up arrow for history. It's very nice for Windows reverse shells where a full shell upgrade isn't possible.";
}
