.interactive-word {
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.interactive-word:hover {
    background-color: #e3f2fd;
    border-radius: 3px;
}

.interactive-word:not(.in-vocab) {
    background-color: #d4edda;
    border-radius: 3px;
}

.interactive-word:not(.in-vocab):hover {
    background-color: #c3e6cb;
}

.interactive-word::after {
    content: attr(data-translation);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

/* Clickable tooltip link wrapper */
.interactive-word .lp-tip-link {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    text-decoration: none;
}

.interactive-word:hover::after {
    opacity: 1;
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #eee;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#photo-filename {
    min-height: 38px;
    display: flex;
    align-items: center;
}

#photo-import-btn:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

#photo-import-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
} 