/* Swift Syntax Highlighting Styles */
/* Removed background and padding from .swift-code to eliminate the extra gray border */
.swift-code {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
    tab-size: 4;
    color: #D4D4D4;
}

/* Base text color */
.swift-code code {
    color: #D4D4D4;
}

/* Swift keywords */
.swift-code .keyword {
    color: #569CD6;
    font-weight: bold;
}

/* Swift types */
.swift-code .type {
    color: #4EC9B0;
}

/* SwiftUI specific keywords */
.swift-code .swiftui {
    color: #C586C0;
}

/* Strings */
.swift-code .string {
    color: #CE9178;
}

/* Comments */
.swift-code .comment {
    color: #6A9955;
    font-style: italic;
}

/* Numbers */
.swift-code .number {
    color: #B5CEA8;
}

/* Function names */
.swift-code .function {
    color: #DCDCAA;
}

/* Swift attributes (@State, etc.) */
.swift-code .attribute {
    color: #FF79C6;
}

/* Line numbers */
.swift-code .line-number {
    color: #858585;
    user-select: none;
    margin-right: 12px;
    display: inline-block;
    text-align: right;
    min-width: 40px;
}

/* Improve readability with proper spacing */
.swift-code code {
    display: block;
    overflow-x: auto;
    white-space: pre;
}

/* Make the code container scrollable horizontally if needed */
.code-display {
    overflow-x: auto;
    max-width: 100%;
    /* Ensure no extra background or border is added */
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}
