/* Grammar Suggestion V2 styles */

.grammarSuggestionV2 {
    background-color: rgba(76, 175, 80, 0.3);
    border-radius: 2px;
    cursor: pointer;
}

.grammarSuggestionV2.removalSuggestionV2 {
    background-color: rgba(244, 67, 54, 0.3);
}

.grammarSuggestionV2-selected {
    background-color: rgba(33, 150, 243, 0.4);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.5);
}

/* Grammar Widget V2 styles */

.grammarWidgetV2 {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(-100%) translateX(-8px);
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

.grammarWidgetV2.queued,
.grammarWidgetV2.processing {
    background: #e3f2fd;
    color: #1565c0;
}

.grammarWidgetV2.backoff {
    background: #fff3e0;
    color: #e65100;
}

.grammarWidgetV2.error {
    background: #ffebee;
    color: #c62828;
}

/* Grammar Popup V2 styles */

.grammarPopupV2 {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    max-width: 400px;
}

.grammarPopupV2-mainRow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.grammarPopupV2-original {
    color: #c62828;
    text-decoration: line-through;
}

.grammarPopupV2-arrow {
    color: #666;
}

.grammarPopupV2-replacement {
    color: #2e7d32;
    font-weight: 500;
}

.grammarPopupV2-accept,
.grammarPopupV2-discard {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grammarPopupV2-accept {
    background: #e8f5e9;
    color: #2e7d32;
}

.grammarPopupV2-accept:hover {
    background: #c8e6c9;
}

.grammarPopupV2-discard {
    background: #ffebee;
    color: #c62828;
}

.grammarPopupV2-discard:hover {
    background: #ffcdd2;
}

.grammarPopupV2-hint {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    color: #1565c0;
}

.grammarPopupV2-hint:hover {
    background: #bbdefb;
}

.grammarPopupV2-hintArea {
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.grammarPopupV2-hintText {
    color: #333;
    line-height: 1.4;
}

.grammarPopupV2-loading {
    color: #666;
    font-style: italic;
}

.grammarPopupV2-hintError {
    color: #c62828;
    font-style: italic;
}

/* Auto-complete ghost text */

.autoCompleteGhostText {
    color: #9ca3af;
    opacity: 0.7;
    pointer-events: none;
}
