/* TOOLTIP SYSTEM - GUARANTEED WORKING CSS */
/* Add this to your style.css or use this as a standalone file */

.smart-word {
    background: linear-gradient(120deg, #fef3c7 0%, #fcd34d 100%);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #92400e;
    cursor: help;
    position: relative;
    transition: all 0.2s ease;
    border-bottom: 2px dotted #f59e0b;
}

.smart-word:hover {
    background: linear-gradient(120deg, #fde68a 0%, #fbbf24 100%);
    transform: translateY(-1px);
}

#tooltip-container {
    position: fixed;
    background: rgba(15, 23, 42, 0.96);
    color: white;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 340px;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 12px 28px rgba(0,0,0,0.3), 0 0 1px rgba(255,255,255,0.1);
    font-family: 'Sarabun', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.12);
    
    /* Default hidden state */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Print styles - hide tooltip */
@media print {
    #tooltip-container {
        display: none !important;
    }
    
    .smart-word {
        background: none !important;
        border-bottom: 1px dotted black !important;
        color: black !important;
    }
}