.highlight {
    cursor: pointer;
    border-bottom: 2px solid;
    transition: background-color 0.2s;
    position: relative;
}

.highlight:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.highlight-spelling {
    border-color: #ef4444; /* Red */
    background-color: rgba(239, 68, 68, 0.1);
}

.highlight-grammar {
    border-color: #eab308; /* Yellow */
    background-color: rgba(234, 179, 8, 0.1);
}

.highlight-style {
    border-color: #3b82f6; /* Blue */
    background-color: rgba(59, 130, 246, 0.1);
}

/* Tooltip/Popover */
.suggestion-popover {
    position: absolute;
    z-index: 50;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #e2e8f0;
}

.suggestion-popover h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
}

.suggestion-popover .suggestion-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
    background-color: #334155;
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s;
}

.suggestion-popover .suggestion-btn:hover {
    background-color: #475569;
}

.suggestion-popover .ignore-btn {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
}
.suggestion-popover .ignore-btn:hover {
    color: #cbd5e1;
    text-decoration: underline;
}

/* Fade In Animation */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
