/* Context Bridge - Injection Button Styles */ .context-bridge-button { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: linear-gradient(135deg, #F5A623 0%, #FF1D6C 38.2%, #9C27B0 61.8%, #2979FF 100%); color: white; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; z-index: 9999; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .context-bridge-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .context-bridge-button:active:not(:disabled) { transform: translateY(0); } .context-bridge-button:disabled { opacity: 0.7; cursor: not-allowed; } .context-bridge-button.injected { background: #10B981; } .context-bridge-button.error { background: #EF4444; } .context-bridge-button.loading { background: #667eea; } .context-bridge-icon { width: 16px; height: 16px; } .context-bridge-icon.spinning { animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Tooltip */ .context-bridge-tooltip { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 8px; padding: 8px 12px; background: rgba(0, 0, 0, 0.9); color: white; border-radius: 6px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 10000; } .context-bridge-button:hover:not(:disabled) .context-bridge-tooltip { opacity: 1; } /* Preview popup */ .context-bridge-preview { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 600px; max-height: 80vh; background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); z-index: 10001; overflow: hidden; display: none; } .context-bridge-preview.show { display: flex; flex-direction: column; } .context-bridge-preview-header { padding: 16px 20px; background: linear-gradient(135deg, #F5A623 0%, #FF1D6C 38.2%, #9C27B0 61.8%, #2979FF 100%); color: white; display: flex; justify-content: space-between; align-items: center; } .context-bridge-preview-title { font-size: 16px; font-weight: 600; } .context-bridge-preview-close { background: rgba(255, 255, 255, 0.2); border: none; color: white; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; transition: background 0.2s; } .context-bridge-preview-close:hover { background: rgba(255, 255, 255, 0.3); } .context-bridge-preview-content { padding: 20px; overflow-y: auto; flex: 1; font-size: 14px; line-height: 1.6; color: #333; } .context-bridge-preview-content pre { background: #f5f5f5; padding: 12px; border-radius: 6px; overflow-x: auto; font-size: 13px; } .context-bridge-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 10000; display: none; } .context-bridge-overlay.show { display: block; } /* Loading spinner */ .context-bridge-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: white; animation: spin 0.6s linear infinite; }