/* Code block copy button styles */
.code-block-wrapper {
    position: relative;
    margin: 1em 0;
}

.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
    font-family: inherit;
    text-transform: lowercase;
    transition: color 0.2s ease;
    z-index: 10;
}

.copy-code-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.copy-code-btn.copied {
    color: #4CAF50;
}

/* Ensure pre blocks have enough padding for the button */
.code-block-wrapper pre {
    padding: 1em;
    padding-top: 2.5em;
    position: relative;
}
