/* VSCode Dark+ Theme for C# Syntax Highlighting */
/* Based on Visual Studio Code's default dark theme */

.code-block-vscode {
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 6px;
}

.code-block-vscode pre {
    margin: 0;
    padding: 0;
    white-space: pre;
    word-wrap: normal;
}

.code-block-vscode code {
    font-family: inherit;
    font-size: inherit;
}

/* Keywords - Blue */
.token-keyword {
    color: #569cd6;
    font-weight: normal;
}

/* Strings - Orange/Brown */
.token-string {
    color: #ce9178;
}

/* Numbers - Light Green */
.token-number {
    color: #b5cea8;
}

/* Comments - Green */
.token-comment {
    color: #6a9955;
    font-style: italic;
}

/* Classes and Types - Teal/Cyan */
.token-class,
.token-struct,
.token-enum,
.token-delegate {
    color: #4ec9b0;
    font-weight: normal;
}

/* Interfaces - Teal/Cyan (same as classes in VSCode) */
.token-interface {
    color: #4ec9b0;
    font-weight: normal;
}

/* Methods and Functions - Yellow */
.token-method {
    color: #dcdcaa;
}

/* Properties - Light Blue/Cyan */
.token-property {
    color: #9cdcfe;
}

/* Fields - Light Blue/Cyan */
.token-field {
    color: #9cdcfe;
}

/* Variables - Light Blue/Cyan */
.token-variable {
    color: #9cdcfe;
}

/* Parameters - Light Blue/Cyan */
.token-parameter {
    color: #9cdcfe;
}

/* Namespaces - Teal */
.token-namespace {
    color: #4ec9b0;
}

/* Punctuation - Light Gray */
.token-punctuation {
    color: #d4d4d4;
}

/* Operators - Light Gray */
.token-operator {
    color: #d4d4d4;
}

/* Selection */
.code-block-vscode ::selection {
    background: #264f78;
}

/* Scrollbar styling for webkit browsers */
.code-block-vscode::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.code-block-vscode::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.code-block-vscode::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 5px;
}

.code-block-vscode::-webkit-scrollbar-thumb:hover {
    background: #4e4e4e;
}

/* Line numbers (if needed) */
.line-number {
    color: #858585;
    user-select: none;
    padding-right: 1em;
    text-align: right;
    display: inline-block;
    min-width: 2em;
}

.line-content {
    padding-left: 0.5em;
}

/* Code block header */
.code-block-header {
    background: #252526;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #3e3e42;
    border-radius: 6px 6px 0 0;
    font-size: 0.75rem;
    color: #cccccc;
}

.code-block-header + .code-block-vscode {
    border-radius: 0 0 6px 6px;
}

/* Highlighted code block (green border) */
.code-block.border-green-800 .code-block-vscode {
    border: 2px solid #166534;
}

.code-block-header.bg-green-800\/50 {
    background: rgba(22, 101, 52, 0.5);
}
