/* assets/css/prism-copy.css */

.prism-code-wrapper {
    position: relative;
    margin-bottom: 1em;
    border-radius: 8px;
    overflow: hidden;
    background: #2d2d2d;
    padding-top: 2em;
}

.prism-code-wrapper pre {
    margin: 0;
    padding: 1em;
    overflow: auto;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #f8f8f2;
    background: transparent;
}

.copy-button {
    position: absolute;
    top: 6px;
    right: 10px;
    padding: 3px 8px;
    font-size: 12px;
    background: #61dafb;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

.copy-button:hover {
    background: #21a1f1;
}

.language-label {
    position: absolute;
    top: 6px;
    left: 10px;
    font-size: 12px;
    color: #ddd;
    background: #444;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
    font-family: sans-serif;
}


/* Tooltip for copy button */
.prism-tooltip {
    position: absolute;
    top: -25px;
    right: 0;
    background: #000;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 999;
}
.prism-tooltip.show {
    opacity: 1;
}

