/**
 * AI Quality Checker - Inline Hint Styles
 * Subtle, non-intrusive styling for M&E statement quality suggestions
 */

/* ========================================================================
   HINT CONTAINER
   ======================================================================== */
.ai-quality-hint {
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.ai-hint-content {
    background: #f0f7ff;
    border: 1px solid #c5ddf5;
    border-left: 3px solid #4a9eff;
    border-radius: 0 4px 4px 0;
    padding: 8px 12px;
    position: relative;
}

/* ========================================================================
   LOADING STATE
   ======================================================================== */
.ai-hint-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-style: italic;
}

.ai-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #c5ddf5;
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: ai-spin 0.8s linear infinite;
}

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

/* ========================================================================
   SUGGESTION RESULT
   ======================================================================== */
.ai-hint-suggestion {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
}

.ai-hint-icon {
    color: #e8a317;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.ai-hint-message {
    color: #555;
    font-size: 11px;
}

/* The proposed improvement text */
.ai-hint-proposed {
    background: #ffffff;
    border: 1px solid #d4e5f7;
    border-radius: 3px;
    padding: 6px 10px;
    color: #1a5a2c;
    font-size: 12px;
    font-weight: 500;
    margin: 4px 0 6px 0;
    word-wrap: break-word;
}

/* ========================================================================
   ACTION BUTTONS
   ======================================================================== */
.ai-hint-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.ai-btn-accept,
.ai-btn-dismiss {
    border: none;
    border-radius: 3px;
    padding: 2px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ai-btn-accept {
    background: #28a745;
    color: #fff;
}

.ai-btn-accept:hover {
    background: #218838;
}

.ai-btn-dismiss {
    background: #e9ecef;
    color: #6c757d;
}

.ai-btn-dismiss:hover {
    background: #dee2e6;
    color: #495057;
}

/* ========================================================================
   FIELD FLASH ON ACCEPT
   ======================================================================== */
.ai-field-accepted {
    animation: ai-accept-flash 1.5s ease;
}

@keyframes ai-accept-flash {
    0%   { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5); }
    30%  { box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3); }
    100% { box-shadow: none; }
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 576px) {
    .ai-hint-content {
        padding: 6px 8px;
    }
    
    .ai-hint-proposed {
        font-size: 11px;
    }
    
    .ai-btn-accept,
    .ai-btn-dismiss {
        font-size: 10px;
        padding: 2px 8px;
    }
}