/* CodeBlock Component Styles - Minimal Medium-style */
.code-block-container {
    position: relative;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    overflow: hidden;
    margin: 1.5rem 0;
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

.code-block-content {
    position: relative;
}

.code-block-content pre {
    margin: 0;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-size: 1rem !important;
    line-height: 1.5;
    background: transparent !important;
    color: #374151;
}

.code-block-content pre code {
    display: block;
    background: transparent !important;
    color: #374151 !important;
    font-size: inherit;
}

.copy-feedback {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s;
}

.copy-feedback.success {
    background-color: #059669;
    color: white;
}

.copy-feedback.error {
    background-color: #dc2626;
    color: white;
}

/* Prism.js Light Theme - Minimal Medium-style */
.code-block-content .token.comment,
.code-block-content .token.prolog,
.code-block-content .token.doctype,
.code-block-content .token.cdata {
    color: #6b7280 !important;
    font-style: italic;
}

.code-block-content .token.punctuation {
    color: #374151 !important;
}

.code-block-content .token.property,
.code-block-content .token.tag,
.code-block-content .token.boolean,
.code-block-content .token.number,
.code-block-content .token.constant,
.code-block-content .token.symbol,
.code-block-content .token.deleted {
    color: #dc2626 !important;
}

.code-block-content .token.selector,
.code-block-content .token.attr-name,
.code-block-content .token.string,
.code-block-content .token.char,
.code-block-content .token.builtin,
.code-block-content .token.inserted {
    color: #059669 !important;
}

.code-block-content .token.operator,
.code-block-content .token.entity,
.code-block-content .token.url,
.code-block-content .language-css .token.string,
.code-block-content .style .token.string {
    color: #d97706 !important;
}

.code-block-content .token.atrule,
.code-block-content .token.attr-value,
.code-block-content .token.keyword {
    color: #2563eb !important;
    font-weight: 500;
}

.code-block-content .token.function,
.code-block-content .token.class-name {
    color: #7c3aed !important;
}

.code-block-content .token.regex,
.code-block-content .token.important,
.code-block-content .token.variable {
    color: #db2777 !important;
}

/* Additional language-specific styling */
.code-block-content .token.namespace {
    color: #7c3aed !important;
}

.code-block-content .token.method {
    color: #059669 !important;
}

/* C# specific tokens */
.code-block-content .language-csharp .token.keyword {
    color: #2563eb !important;
    font-weight: 500;
}

.code-block-content .language-csharp .token.class-name {
    color: #d97706 !important;
}

.code-block-content .language-csharp .token.string {
    color: #059669 !important;
}

/* JavaScript specific tokens */
.code-block-content .language-javascript .token.function {
    color: #7c3aed !important;
}

.code-block-content .language-javascript .token.template-string {
    color: #059669 !important;
}

/* JSON specific tokens */
.code-block-content .language-json .token.property {
    color: #2563eb !important;
}

.code-block-content .language-json .token.string {
    color: #059669 !important;
}

.code-block-content .language-json .token.number {
    color: #dc2626 !important;
}

/* Remove any line numbers styling since we're not using them */
.code-block-content .line-numbers .line-numbers-rows {
    display: none;
}

/* Minimal scrollbar for code overflow */
.code-block-content pre::-webkit-scrollbar {
    height: 8px;
}

.code-block-content pre::-webkit-scrollbar-track {
    background: #f1f3f4;
}

.code-block-content pre::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.code-block-content pre::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}