/* The Floating Tooltip */
#tts-tooltip {
    position: absolute;
    z-index: 9999;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-family: sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) translateX(-50%);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    
    /* Prevents the button itself from being highlighted */
    user-select: none; 
}

/* The little triangle pointing down at the cursor */
#tts-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #1a1a1a transparent transparent transparent;
}

/* Active state to show the tooltip */
#tts-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
}

#tts-tooltip:hover {
    background: #333333;
}

.tts-instructions {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-family: sans-serif;
}

.tts-instructions p {
    margin: 0 0 10px 0;
    color: #333;
}

#voice-select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    max-width: 300px;
    width: 100%;
}