/**
 * 代码复制前台样式
 */
.navtool-code-wrap {
    position: relative;
}

.navtool-copy-btn {
    position: absolute;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    z-index: 10;
    white-space: nowrap;
}

.navtool-code-wrap:hover .navtool-copy-btn {
    opacity: 1;
}

.navtool-copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.navtool-copy-btn.is-copied {
    background: #2fb36d;
    border-color: #2fb36d;
    color: #fff;
}

/* Positions */
.navtool-copy-btn--top-right { top: 6px; right: 6px; }
.navtool-copy-btn--top-left  { top: 6px; left: 6px; }
.navtool-copy-btn--bottom-right { bottom: 6px; right: 6px; }
.navtool-copy-btn--bottom-left  { bottom: 6px; left: 6px; }
