/* Enhanced Review Interface Styles */

/* Confidence Indicators */
.confidence-indicator {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: normal;
    transition: all 0.3s ease;
}

.confidence-high {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.confidence-medium {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.confidence-low {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Invoice Row Animations */
.invoice-row {
    transition: all 0.3s ease;
}

.invoice-row:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Processing Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.processing {
    animation: pulse 2s infinite;
}

/* Changed Field Indicator */
.changed-field {
    border-color: #0d6efd !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Validation Status */
.validation-status {
    font-size: 0.875rem;
}

.validation-success {
    color: #28a745;
}

.validation-error {
    color: #dc3545;
}

/* PDF Viewer Container */
.pdf-viewer-container {
    height: calc(100vh - 200px);
    overflow: hidden;
    background-color: #f8f9fa;
}

/* Review Form Improvements */
#enhancedReviewForm .form-label {
    color: #495057;
    font-size: 0.9rem;
}

#enhancedReviewForm .input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Toast Notifications */
.toast-container {
    z-index: 9999;
}

/* Review Table Improvements */
#reviewInvoicesTableBody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#reviewInvoicesTableBody tr:hover {
    background-color: #f8f9fa;
}

/* Action Buttons */
.btn-group-review {
    display: flex;
    gap: 0.25rem;
}

/* Keyboard Shortcut Hints */
.shortcut-hint {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

button:hover .shortcut-hint {
    opacity: 1;
}

/* Modal Fullscreen Improvements */
.modal-fullscreen .modal-body {
    padding: 0;
}

.modal-fullscreen .row {
    height: 100%;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .modal-fullscreen .col-md-6 {
        height: 50vh;
    }
    
    .pdf-viewer-container {
        height: calc(50vh - 100px);
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Enhanced Badge Styles */
.badge.bg-danger {
    animation: pulse 3s infinite;
}

/* Form Control Focus */
.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Alert Improvements */
.alert-warning {
    border-left: 4px solid #ffc107;
}

/* Button Hover Effects */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Progress Indicator */
#reviewProgress {
    font-weight: normal;
    font-size: 0.875rem;
}