/**
 * Prism.js - Syntax Highlighting Theme
 * Based on One Dark theme
 * 
 * @package TechOps_Pro
 */

code[class*="language-"],
pre[class*="language-"] {
    color: #abb2bf;
    background: none;
    font-family: 'Fira Code', 'JetBrains Mono', Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 0.875rem;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.6;
    tab-size: 4;
    hyphens: none;
}

pre[class*="language-"] {
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow: auto;
    border-radius: 12px;
    background: #1e1e1e;
}

:not(pre)>code[class*="language-"] {
    padding: 0.2em 0.4em;
    border-radius: 4px;
    white-space: normal;
    background: #282c34;
}

/* Tokens */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #5c6370;
    font-style: italic;
}

.token.punctuation {
    color: #abb2bf;
}

.token.namespace {
    opacity: 0.7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #e06c75;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #98c379;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #56b6c2;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #c678dd;
}

.token.function,
.token.class-name {
    color: #61afef;
}

.token.regex,
.token.important,
.token.variable {
    color: #d19a66;
}

.token.important,
.token.bold {
    font-weight: bold;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

/* Line Numbers */
pre[class*="language-"].line-numbers {
    position: relative;
    padding-left: 3.8em;
    counter-reset: linenumber;
}

pre[class*="language-"].line-numbers>code {
    position: relative;
    white-space: inherit;
}

.line-numbers .line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 1.5rem;
    left: 0;
    width: 3em;
    letter-spacing: -1px;
    border-right: 1px solid #3a3f4b;
    user-select: none;
}

.line-numbers-rows>span {
    display: block;
    counter-increment: linenumber;
}

.line-numbers-rows>span:before {
    content: counter(linenumber);
    color: #5c6370;
    display: block;
    padding-right: 0.8em;
    text-align: right;
}

/* Toolbar */
div.code-toolbar {
    position: relative;
}

div.code-toolbar>.toolbar {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

div.code-toolbar:hover>.toolbar {
    opacity: 1;
}

div.code-toolbar>.toolbar>.toolbar-item {
    display: inline-block;
}

div.code-toolbar>.toolbar>.toolbar-item>button,
div.code-toolbar>.toolbar>.toolbar-item>span {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: #8b949e;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

div.code-toolbar>.toolbar>.toolbar-item>button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Language-specific colors */
.language-bash .token.function,
.language-shell .token.function {
    color: #98c379;
}

.language-powershell .token.function {
    color: #61afef;
}

.language-powershell .token.variable {
    color: #56b6c2;
}

.language-yaml .token.key {
    color: #e06c75;
}

.language-json .token.property {
    color: #e06c75;
}

/* Diff Highlighting */
.token.deleted {
    background: rgba(224, 108, 117, 0.2);
}

.token.inserted {
    background: rgba(152, 195, 121, 0.2);
}

/* Selection */
code[class*="language-"]::selection,
pre[class*="language-"]::selection,
code[class*="language-"] *::selection,
pre[class*="language-"] *::selection {
    background: #3e4451;
}