/* PrismJS Theme - Xengine Dark */
code[class*="language-"],
pre[class*="language-"] {
    color: #e5e5e5;
    background: none;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, 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: 20px;
    margin: 0;
    overflow: auto;
    border-radius: 10px;
    background: #0d0d0d;
}

:not(pre) > code[class*="language-"] {
    padding: 2px 6px;
    border-radius: 4px;
    white-space: normal;
    background: #141414;
}

/* Comments */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #525252;
    font-style: italic;
}

/* Punctuation */
.token.punctuation {
    color: #a3a3a3;
}

.token.namespace {
    opacity: 0.8;
}

/* Keywords */
.token.keyword {
    color: #c084fc;
    font-weight: 500;
}

/* Types, Classes */
.token.class-name,
.token.type {
    color: #38bdf8;
}

/* Functions, Methods */
.token.function,
.token.method {
    color: #22d3ee;
}

/* Strings */
.token.string,
.token.char {
    color: #4ade80;
}

/* Numbers */
.token.number,
.token.boolean {
    color: #fb923c;
}

/* Properties, Variables */
.token.property,
.token.tag,
.token.constant,
.token.symbol {
    color: #f472b6;
}

.token.deleted {
    color: #ef4444;
}

.token.inserted {
    color: #4ade80;
}

/* Selectors, Attributes */
.token.selector,
.token.attr-name {
    color: #a78bfa;
}

.token.builtin {
    color: #38bdf8;
}

/* Operators */
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
    color: #fbbf24;
}

/* Attribute Values */
.token.atrule,
.token.attr-value {
    color: #4ade80;
}

/* Regex */
.token.regex {
    color: #fb923c;
}

.token.important {
    color: #f87171;
    font-weight: bold;
}

.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.5em;
    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: 20px;
    font-size: 100%;
    left: 0;
    width: 3em;
    letter-spacing: -1px;
    border-right: 1px solid #262626;
    user-select: none;
    padding-right: 0.8em;
    text-align: right;
}

.line-numbers-rows > span {
    display: block;
    counter-increment: linenumber;
}

.line-numbers-rows > span::before {
    content: counter(linenumber);
    color: #404040;
    display: block;
}

/* Line Highlight */
.line-highlight {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    margin-left: -20px;
    padding-left: 17px;
}

/* Inline Code */
p code,
li code,
td code {
    background: #141414;
    color: #10b981;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Code Block Header */
.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #141414;
    border: 1px solid #262626;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    font-size: 0.75rem;
    color: #737373;
}

.code-header + pre {
    border-radius: 0 0 10px 10px;
    margin-top: 0;
}

.code-header .language-tag {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.code-header .file-name {
    color: #a3a3a3;
}

/* Diff Highlighting */
.token.deleted {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.token.inserted {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

/* Selection */
code[class*="language-"]::selection,
pre[class*="language-"]::selection,
code[class*="language-"] ::selection,
pre[class*="language-"] ::selection {
    background: rgba(59, 130, 246, 0.3);
}

/* Print */
@media print {
    code[class*="language-"],
    pre[class*="language-"] {
        text-shadow: none;
    }
}
