/* Copy button container - position relative to code block */
.highlight {
    position: relative;
}

/* Adjust pre blocks to make minimal room for copy button */
.highlight pre {
    padding-top: 12px !important;
    padding-right: 80px !important; /* Make room for button on the right */
}

/* Copy button styling - positioned outside the code flow */
.copy-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: #24292f;
    background-color: #f6f8fa;
    border: 1px solid rgba(27, 31, 36, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.copy-btn:hover {
    background-color: #f3f4f6;
    border-color: rgba(27, 31, 36, 0.25);
}

.copy-btn:active {
    background-color: #ebecf0;
}

/* Success state */
.copy-btn.copied {
    color: #ffffff;
    background-color: #2ea44f;
    border-color: rgba(27, 31, 36, 0.15);
}
