
/*стили для копирования */
.copyable {
    cursor: pointer;
    position: relative;
    padding-right: 20px; /* место под иконку */
    display: inline-flex;
    align-items: center;
}

.copyable::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    background: url("../svg/copy.svg") no-repeat center;
    background-size: contain;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.copyable:hover::after {
    opacity: 1;
}

.copy-tooltip {
    position: absolute;
    bottom: 100%; /* сразу над текстом */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* старт снизу */
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    animation: fadeInOut 1.5s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}
