/**
 * Copy Button Animations
 * Provides visual feedback for clipboard operations
 */

/* Copy animation */
@keyframes copy-flash {
    0% { background-color: transparent; }
    50% { background-color: rgba(40, 167, 69, 0.2); }
    100% { background-color: transparent; }
}

.copy-animation {
    animation: copy-flash 0.5s ease-in-out;
}

/* Button hover effects for copy buttons */
.copy-key:hover, 
.copy-all-info:hover, 
.copy-btn:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Tooltip styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

/* Toast animations */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-item {
    background-color: #333;
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    min-width: 250px;
    max-width: 350px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast-item.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.toast-title {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #ffffff !important;
}

.toast-title i {
    margin-right: 8px;
}

.toast-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.success-icon {
    color: #28a745;
}

.info-icon {
    color: #17a2b8;
}

.danger-icon {
    color: #dc3545;
}

/* Toast types */
.toast-item.success {
    background-color: #28a745;
    color: #ffffff !important;
}

.toast-item.info {
    background-color: #17a2b8;
    color: #ffffff !important;
}

.toast-item.danger {
    background-color: #dc3545;
    color: #ffffff !important;
}

/* Additional toast text styling to ensure all text is white */
.toast-item * {
    color: #ffffff !important;
}

.toast-header * {
    color: #ffffff !important;
}

.toast-body * {
    color: #ffffff !important;
}