/* Copy Raw Code Button - Pane Headers */

.copy-raw-btn {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: 0.75rem;
}

.copy-raw-btn:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-fox-orange);
    color: var(--color-fox-orange);
}

.copy-raw-btn:active {
    transform: scale(0.95);
}

.copy-raw-btn i {
    font-size: 0.875rem;
}

/* Copy toast notification */
.copy-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #22863a, #2ea043);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10001;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.copy-toast.error {
    background: linear-gradient(135deg, #cb2431, #d73a49);
}

.copy-toast i {
    font-size: 1.125rem;
}

/* Mobile: smaller copy button */
@media (max-width: 768px) {
    .copy-raw-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
        margin-left: 0.5rem;
    }

    .copy-raw-btn i {
        font-size: 0.75rem;
    }

    .copy-toast {
        bottom: 80px;
        font-size: 0.75rem;
        padding: 10px 16px;
    }
}
