.codeblock-container {
    position: relative;
    margin: 1em 0;
    border: 1px solid #333;
    border-radius: 4px;
    background: #909090;
    font-family: monospace;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.codeblock-header {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    background: #909090;
    border-bottom: 1px solid #333;
    color: #DFDFDF;
    font-size: 14px;
    align-items: center;
}

.codeblock-language {
    font-weight: bold;
    padding: 2px 8px;
}

.codeblock-buttons {
    display: flex;
    gap: 5px;
}

.codeblock-copy-btn, .codeblock-toggle-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background: #444;
    color: #fff;
    font-size: 12px;
}

.codeblock-copy-btn:hover, .codeblock-toggle-btn:hover {
    background: #555;
}

.codeblock-content {
	position: relative; /* Set as positioning context for absolute buttons */
    padding: 10px 10px 10px 10px !important;
    margin: 0;
    background: #DFDFDF;
    color: #686868;
    font-size: 16px !important;
    overflow-x: auto;
    overflow-y: visible;
}

.codeblock-content.collapsed {
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
}

.codeblock-line {
    position: relative;
    padding: 2px 0;
	min-height: 20px;
	transition: background-color 0.2s ease;
}

.codeblock-line:hover {
    background-color: #c9c9c9;
	display: inline-block;
	min-width: 100%;
}

.line-content {
    white-space: pre;
    padding-right: 40px;
    display: inline-block;
    font-size: 16px !important;
}

.line-copy-btn {
    display: none;
    position: absolute; /* Use sticky positioning */
	left: 10px; /* Fixed distance from the right edge of the container */
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 6px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background: #444;
    color: #fff;
    font-size: 10px;
	z-index: 1;
}

.codeblock-line:hover .line-copy-btn {
    display: inline-block;
}

.line-copy-btn:hover {
    background: #555;
}

.codeblock-content::-webkit-scrollbar {
    height: 8px;
}

.codeblock-content::-webkit-scrollbar-track {
    background: #DFDFDF;
}

.codeblock-content::-webkit-scrollbar-thumb {
    background: #909090;
    border-radius: 4px;
}

.codeblock-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}
