/* ============================================
   PRISM.JS CUSTOM THEME - openclaw.ai
   ============================================ */

code[class*="language-"],
pre[class*="language-"] {
    color: #e2e8f0;
    background: none;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.7;
    tab-size: 4;
    hyphens: none;
}

pre[class*="language-"] {
    padding: 1rem;
    margin: 0;
    overflow: auto;
    border-radius: 0;
}

:not(pre)>code[class*="language-"] {
    padding: 0.2em 0.4em;
    border-radius: 0.3em;
    white-space: normal;
    background: #1e293b;
}

/* Tokens */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #64748b;
    font-style: italic;
}

.token.punctuation {
    color: #94a3b8;
}

.token.namespace {
    opacity: 0.7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #f472b6;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #a5f3fc;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #fbbf24;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #818cf8;
}

.token.function,
.token.class-name {
    color: #60a5fa;
}

.token.regex,
.token.important,
.token.variable {
    color: #fcd34d;
}

.token.important,
.token.bold {
    font-weight: bold;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

/* Line highlighting */
.line-highlight {
    background: rgba(99, 102, 241, 0.15);
    display: block;
    padding-left: 1rem;
    margin-left: -1rem;
    padding-right: 1rem;
    margin-right: -1rem;
    border-left: 3px solid #6366f1;
}

/* Line numbers */
.line-numbers .line-numbers-rows {
    border-right: 1px solid #334155;
    padding-right: 0.5rem;
    margin-right: 1rem;
}

.line-numbers-rows>span::before {
    color: #475569;
}

/* Command line */
.command-line-prompt>span::before {
    color: #10b981;
}

.command-line-prompt>span[data-user]::before {
    content: "[" attr(data-user) "@" attr(data-host) "] $";
}

.command-line-prompt>span[data-prompt]::before {
    content: attr(data-prompt);
}

/* Diff highlighting */
.token.deleted {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.token.inserted {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

/* Selection */
code[class*="language-"]::selection,
pre[class*="language-"]::selection,
code[class*="language-"] *::selection,
pre[class*="language-"] *::selection {
    background: rgba(99, 102, 241, 0.3);
}