/* Swift-specific syntax highlighting for dark theme */
.language-swift .highlight {
    background-color: #252629;
    color: #DFDFE0;

    /* Core syntax elements */
    --swift-plain-text: #FFFFFF;
    --swift-comment: #6C7986;
    --swift-doc-markup: #6C7986;
    --swift-doc-markup-keywords: #92A1B1;
    --swift-marks: #92A1B1;
    --swift-string: #FC6A5D;
    --swift-character: #D0BF69;
    --swift-number: #D0BF69;
    --swift-regex-literal: #FC6A5D;
    --swift-regex-numbers: #D0BF69;
    --swift-regex-capture: #67B7A4;
    --swift-regex-character: #A167E6;
    --swift-regex-operator: #FFFFFF;
    --swift-keyword: #FC5FA3;
    --swift-preprocessor: #FD8F3F;
    --swift-url: #5482FF;
    --swift-attribute: #BF8555;
    --swift-type-declaration: #5DD8FF;
    --swift-other-declaration: #41A1C0;
    --swift-heading: #AA0D91;

    /* Project-specific elements */
    --swift-project-class: #9EF1DD;
    --swift-project-function: #67B7A4;
    --swift-project-constant: #67B7A4;
    --swift-project-type: #9EF1DD;
    --swift-project-property: #67B7A4;
    --swift-project-preprocessor: #FD8F3F;

    /* Other elements */
    --swift-other-class: #D0A8FF;
    --swift-other-function: #A167E6;
    --swift-other-constant: #A167E6;
    --swift-other-type: #D0A8FF;
    --swift-other-property: #A167E6;
    --swift-other-preprocessor: #FD8F3F;
}

/* Syntax highlighting implementations */
.language-swift .highlight pre { background-color: transparent; }

/* Keywords */
.language-swift .k,
.language-swift .kd { color: var(--swift-keyword) !important; }

/* Strings */
.language-swift .s,
.language-swift .s1,
.language-swift .s2 { color: var(--swift-string) !important; }

/* Comments */
.language-swift .c,
.language-swift .cm,
.language-swift .cp,
.language-swift .c1 { color: var(--swift-comment) !important; }

/* Numbers */
.language-swift .mi,
.language-swift .mf { color: var(--swift-number) !important; }

/* Class Names */
.language-swift .nc { color: var(--swift-project-class) !important; }

/* Type Declarations */
.language-swift .kt { color: var(--swift-type-declaration) !important; }

/* Plain Text */
.language-swift .n { color: var(--swift-plain-text) !important; }

/* Documentation Markup */
.language-swift .nl { color: var(--swift-doc-markup) !important; }

/* Regex Capture */
.language-swift .nx { color: var(--swift-regex-capture) !important; }

/* Punctuation */
.language-swift .p { color: var(--swift-plain-text) !important; }

/* Operators */
.language-swift .o { color: var(--swift-regex-operator) !important; }

/* Documentation and Markup */
.language-swift .cd { color: var(--swift-doc-markup) !important; }
.language-swift .cp { color: var(--swift-preprocessor) !important; }

/* Project-specific elements */
.language-swift .class-name { color: var(--swift-project-class) !important; }
.language-swift .function { color: var(--swift-project-function) !important; }
.language-swift .constant { color: var(--swift-project-constant) !important; }
.language-swift .property { color: var(--swift-project-property) !important; }

/* Other elements */
.language-swift .other-class { color: var(--swift-other-class) !important; }
.language-swift .other-function { color: var(--swift-other-function) !important; }
.language-swift .other-constant { color: var(--swift-other-constant) !important; }
.language-swift .other-property { color: var(--swift-other-property) !important; }

/* Additional styles for better visibility */
.language-swift .highlight {
    padding: 1em;
    border-radius: 6px;
    margin: 1em 0;
}
