/* Android / Kotlin syntax colors (IntelliJ-inspired on dark theme) */
.main-content .code-example {
    background: linear-gradient(145deg, #0d1117 0%, #161b22 50%, #0f172a 100%);
    border: 1px solid rgba(61, 220, 132, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    color: #e2e8f0 !important;
}

.main-content .code-example .code-body {
    display: block;
    margin: 0;
    padding: 0;
    font-family: "JetBrains Mono", "Fira Code", Consolas, Monaco, monospace;
    font-size: 0.875rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    color: #e2e8f0 !important;
    background: transparent;
    border: none;
}

.main-content .code-example .code-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(61, 220, 132, 0.15);
    border: 1px solid rgba(61, 220, 132, 0.35);
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.code-example .hl-comment { color: #6a9955; font-style: italic; }
.code-example .hl-string { color: #ce9178; }
.code-example .hl-keyword { color: #cc7832; font-weight: 600; }
.code-example .hl-modifier { color: #cc7832; font-weight: 600; }
.code-example .hl-function { color: #ffc66d; }
.code-example .hl-class { color: #4ec9b0; font-weight: 600; }
.code-example .hl-type { color: #4ec9b0; }
.code-example .hl-variable { color: #a9b7c6; }
.code-example .hl-property { color: #9876aa; }
.code-example .hl-annotation { color: #bbb529; }
.code-example .hl-boolean { color: #6897bb; font-weight: 600; }
.code-example .hl-number { color: #6897bb; }
.code-example .hl-operator { color: #a9b7c6; }
.code-example .hl-punctuation { color: #808080; }
.code-example .hl-builtin { color: #61afef; }
.code-example .hl-constant { color: #9876aa; font-weight: 600; }
.code-example .hl-namespace { color: #61afef; }

/* XML layouts */
.code-example .hl-tag { color: #569cd6; }
.code-example .hl-tag-punct { color: #808080; }
.code-example .hl-attr { color: #9cdcfe; }

/* Bash / shell in code blocks */
.code-example .hl-bash-cmd { color: #4fc1ff; font-weight: 600; }
.code-example .hl-bash-flag { color: #ce9178; }
.code-example .hl-bash-comment { color: #6a9955; font-style: italic; }

.android-copy-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.android-copy-wrap .code-example {
    margin-bottom: 0;
}

.main-content .code-example.hl-processed {
    padding-top: 1rem;
    padding-right: 4.5rem;
}

.code-example[data-lang="kotlin"] .code-label::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7f52ff;
    box-shadow: 0 0 6px rgba(127, 82, 255, 0.6);
}

.code-example[data-lang="bash"] .code-label::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4fc1ff;
}

.code-example[data-lang="xml"] .code-label::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 6px rgba(249, 115, 22, 0.5);
}
