/* QC Feedback Modal Styles - Professional Redesign */

.qc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
}

.qc-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.qc-modal-content {
    background: white;
    padding: 0;
    border-radius: 12px;
    width: 1000px;
    max-width: 95vw;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.qc-modal-overlay.active .qc-modal-content {
    transform: translateY(0);
}

/* Header */
.qc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.qc-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.qc-modal-close-text {
    background: none;
    border: 1px solid #cbd5e1;
    color: #64748b;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.qc-modal-close-text:hover {
    background-color: #f1f5f9;
    color: #334155;
    border-color: #94a3b8;
}

/* Body Layout */
.qc-modal-body {
    padding: 10px;
    flex: 1;
    overflow-y: hidden;
    background-color: #f8fafc;
}

.qc-feedback-container {
    display: flex;
    gap: 10px;
    height: 100%;
}

/* Left Column */
.qc-feedback-left-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

/* Right Column */
.qc-feedback-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

/* Input Groups */
.qc-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qc-input-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;

    letter-spacing: 0.5px;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

/* Read-only Display Box */
.qc-content-display {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Calibri', 'Roboto', sans-serif;
    min-height: 80px;
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Textareas */
.qc-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: 'Calibri', 'Roboto', sans-serif;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
    min-height: 100px;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s;
    line-height: 1.5;
}

#qcFeedbackDescription {
    resize: vertical;
}

.qc-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Error Selection Wrapper */
.qc-error-selection-wrapper {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.qc-error-search-box {
    padding: 0;
    position: relative;
    background: transparent;
    flex-shrink: 0;
}

.qc-error-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}

.qc-error-search-box input {
    width: 100%;
    padding: 10px 12px 10px 32px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Calibri', 'Roboto', sans-serif;
    color: #334155;
    box-sizing: border-box;
    transition: all 0.2s;
}

.qc-error-search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.qc-error-list-container {
    flex: 1;
    overflow-y: auto;
    background-color: #ffffff;
}

/* Scrollbar for list */
.qc-error-list-container::-webkit-scrollbar {
    width: 6px;
}

.qc-error-list-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

/* Error Option Items */
.qc-error-option {
    width: 100%;
    padding: 10px 14px;
    margin: 0;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
    font-family: 'Calibri', 'Roboto', sans-serif;
    text-align: left;
    color: #475569;
    transition: all 0.15s;
}

.qc-error-option:hover {
    background-color: #f8fafc;
    color: #1e293b;
}

.qc-error-option.selected {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

.qc-error-option i {
    font-size: 14px;
    color: #cbd5e1;
    transition: color 0.2s;
}

.qc-error-option.selected i {
    color: #2563eb;
}

.qc-error-option:last-child {
    border-bottom: none;
}

/* Selected Errors Summary (Tags at bottom of right col) */
.qc-selected-errors-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 30px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.qc-error-tag {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeIn 0.2s ease-out;
}

.qc-error-tag-remove {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.qc-error-tag-remove:hover {
    opacity: 1;
}

/* Footer */


.qc-validation-btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    border: none;
}

.qc-btn-feedback {
    background-color: #3b82f6;
    color: white;
    box-shadow: none;
}

.qc-btn-feedback:hover {
    background-color: #2563eb;
    box-shadow: none;
}

.qc-btn-feedback:active {
    transform: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* View Feedback Modal Styles */

.view-feedback-modal-overlay {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    background-color: transparent;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 9999;
    backdrop-filter: none;
    animation: fadeInOverlay 0.2s ease-out;
    pointer-events: none;
}

.view-feedback-modal {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 400px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    pointer-events: auto;
    border: 1px solid #e2e8f0;
}

.view-feedback-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.view-feedback-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.view-feedback-modal-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.qc-feedback-view-content {
    padding: 20px;
    overflow-y: auto;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.view-feedback-modal-actions {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    display: flex;
    justify-content: flex-end;
}

.view-feedback-modal-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-family: inherit;
}

.view-feedback-modal-btn-primary {
    background-color: #3b82f6;
    color: white;
}

.view-feedback-modal-btn-primary:hover {
    background-color: #2563eb;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
