/* Prism.js Theme - Custom for BlazorUI */
code[class*="language-"],
pre[class*="language-"] {
    color: hsl(var(--foreground));
    background: none;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation 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: 2;
    hyphens: none;
}

pre[class*="language-"] {
    padding: 1rem;
    margin: 0;
    overflow: auto;
    border-radius: calc(var(--radius) - 2px);
    background: hsl(var(--muted) / 0.5);
}

:not(pre) > code[class*="language-"] {
    padding: 0.1em 0.3em;
    border-radius: 0.3em;
    white-space: normal;
    background: hsl(var(--muted));
}

/* Token colors */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: hsl(var(--muted-foreground));
    font-style: italic;
}

.token.punctuation {
    color: hsl(var(--muted-foreground));
}

.token.namespace {
    opacity: 0.7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: hsl(346 77% 50%);
}

.dark .token.property,
.dark .token.tag,
.dark .token.boolean,
.dark .token.number,
.dark .token.constant,
.dark .token.symbol,
.dark .token.deleted {
    color: hsl(346 77% 65%);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: hsl(142 71% 35%);
}

.dark .token.selector,
.dark .token.attr-name,
.dark .token.string,
.dark .token.char,
.dark .token.builtin,
.dark .token.inserted {
    color: hsl(142 71% 55%);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: hsl(var(--foreground));
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: hsl(221 83% 53%);
}

.dark .token.atrule,
.dark .token.attr-value,
.dark .token.keyword {
    color: hsl(221 83% 68%);
}

.token.function,
.token.class-name {
    color: hsl(262 83% 58%);
}

.dark .token.function,
.dark .token.class-name {
    color: hsl(262 83% 70%);
}

.token.regex,
.token.important,
.token.variable {
    color: hsl(25 95% 53%);
}

.dark .token.regex,
.dark .token.important,
.dark .token.variable {
    color: hsl(25 95% 65%);
}

.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: 0;
    font-size: 100%;
    left: -3.8em;
    width: 3em;
    letter-spacing: -1px;
    border-right: 1px solid hsl(var(--border));
    user-select: none;
}

.line-numbers-rows > span {
    display: block;
    counter-increment: linenumber;
}

.line-numbers-rows > span:before {
    content: counter(linenumber);
    color: hsl(var(--muted-foreground));
    display: block;
    padding-right: 0.8em;
    text-align: right;
}
