.code-container {
    position: relative;
    margin: 1rem 0;
    border-radius: 6px;
    overflow: hidden;
}

pre {
    position: relative;
    background: #282c34;
}

pre code {
    font-size: 14px;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.13);
}

.copy-btn img {
    width: 15px;
    height: auto;
    display: block;
}

/* Copy notification popup */
.copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #282c34;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    pointer-events: none;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}
