/**
 * ProQyz Interactive Dotted Connector Lines (IELTS Online Tests Style)
 */

.answer__answer-box {
    position: relative !important;
}

/* SVG Connector Overlay: Must always be absolute & contained inside .answer__answer-box */
#proqyz-connector-svg,
.proqyz-connector-svg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 99 !important;
    overflow: hidden !important;
    display: block !important;
}

#proqyz-connector-svg path,
.proqyz-connector-svg path {
    animation: proqyz-dash-move 25s linear infinite;
}

@keyframes proqyz-dash-move {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 1000;
    }
}

/* Hover & Active highlights on words */
.writing-result-corrections [data-index] {
    cursor: pointer;
    transition: background-color 0.15s ease, outline 0.15s ease;
    border-radius: 3px;
}

.writing-result-corrections [data-index].proqyz-active-word {
    background-color: rgba(0, 167, 223, 0.16) !important;
    outline: 2px dashed #00a7df;
    outline-offset: 1px;
    padding: 1px 3px;
}

.writing-result-corrections del.-bb-orange.proqyz-active-word {
    background-color: rgba(249, 169, 90, 0.22) !important;
    outline: 2px dashed #f9a95a;
    outline-offset: 1px;
}

/* Active highlight on cards */
.answer__status-box {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.answer__status-box.proqyz-active-card {
    transform: translateX(-4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14) !important;
}

.answer__status-box.-blue.proqyz-active-card {
    border-left: 4px solid #00a7df !important;
}

.answer__status-box.-orange.proqyz-active-card {
    border-left: 4px solid #f9a95a !important;
}
