/**
 * Clipboard Copy Feedback Styles
 * Provides visual feedback for copy operations
 */

/* Copy button states */
.copy_clipboard {
    position: relative;
    transition: all 0.3s ease;
}

.copy_clipboard:hover {
    opacity: 0.8;
}

/* Success feedback */
.copy_clipboard.copy-success {
    color: #28a745 !important;
    animation: copyPulse 0.6s ease-in-out;
}

/* Error feedback */
.copy_clipboard.copy-error {
    color: #dc3545 !important;
    animation: copyShake 0.6s ease-in-out;
}

/* Copy pulse animation for success */
@keyframes copyPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Copy shake animation for error */
@keyframes copyShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

/* Tooltip styles for copy feedback */
.copy_clipboard[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.copy_clipboard[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

/* Disable pointer events during animation */
.copy_clipboard.copy-success,
.copy_clipboard.copy-error {
    pointer-events: none;
}

/* Re-enable after animation */
.copy_clipboard:not(.copy-success):not(.copy-error) {
    pointer-events: auto;
} 