#smq-wrapper {
    font-family: var(--bs-body-font-family);
    margin: 0 auto;
    max-width: 900px;
}
#smq-wrapper .subject-card {
    transition: transform 0.2s;
    cursor: pointer;
}
#smq-wrapper .subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    border: 2px solid #0d6efd !important;
}
#smq-wrapper .option-item {
    transition: all 0.2s;
}
#smq-wrapper .option-item:hover {
    transform: scale(1.01);
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}
#smq-wrapper .tf-btn {
    min-width: 100px;
}

/* Matching Styles */
.matching-container {
    position: relative;
    user-select: none;
}
.matching-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}
.matching-item {
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #dee2e6;
    background: #fff;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60px;
    position: relative;
    z-index: 20;
}
.matching-item:hover {
    border-color: #0d6efd;
    background: #f8f9fa;
}
.matching-item.active {
    border-color: #0d6efd;
    background: #e7f1ff;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}
.matching-item.matched {
    border-color: #198754;
}
.matching-dot {
    width: 10px;
    height: 10px;
    background: #ced4da;
    border-radius: 50%;
    position: absolute;
}
.dot-right { right: -6px; top: calc(50% - 5px); }
.dot-left { left: -6px; top: calc(50% - 5px); }
.matching-item.active .matching-dot, 
.matching-item.matched .matching-dot {
    background: #0d6efd;
}

/* Review Navigation Styles */
.smq-review-nav {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 80px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 15px 10px;
    max-height: 80vh;
    transition: all 0.3s ease;
}

.smq-review-nav .nav-title {
    font-size: 0.7rem;
    font-weight: bold;
    color: #ef4444;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.smq-review-nav .nav-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: none; /* Firefox */
}

.smq-review-nav .nav-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.smq-review-nav .nav-item {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: #ef4444;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.smq-review-nav .nav-item:hover {
    transform: scale(1.1);
    background: #dc2626;
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
}

.highlight-wrong {
    animation: pulse-red 2s ease-in-out;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Responsive cho Mobile */
@media (max-width: 768px) {
    .smq-review-nav {
        top: auto;
        bottom: 90px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 10px 15px;
        max-height: 100px;
    }
    
    .smq-review-nav .nav-title {
        margin-bottom: 0;
        margin-right: 15px;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
    }
    
    .smq-review-nav .nav-list {
        flex-direction: row;
        padding-bottom: 5px;
    }
}
