.question-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.question-title {
    font-weight: bold;
    font-size: 1.3rem;
}

.question-image {
    max-width: 100%;
    overflow: hidden;
}

    .question-image img {
        max-width: 100%;
        border-radius: 8px;
    }

.option-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

    .option-item:hover {
        border-color: #dee2e6;
        background: #f1f3f5;
    }

.option-content {
    display: flex;
    align-items: center;
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
}

.option-radio-dot {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.option-text {
    flex-grow: 1;
}

.option-selected {
    background: #d4edda;
    border-color: #28a745;
}

    .option-selected .option-radio:after {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        background: #28a745;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.quiz-option.option-correct {
    background: #d4edda !important;
    border-color: #28a745 !important;
    pointer-events: none;
}

.quiz-option.option-incorrect {
    background: #f8d7da !important;
    border-color: #dc3545 !important;
    pointer-events: none;
}

.quiz-option.option-correct .option-radio:after,
.personality-option.option-selected .option-radio:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #28a745;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.quiz-option.option-incorrect .option-radio:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #dc3545;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#result-section {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 40px;
    margin-bottom: 40px;
}

.result-warning {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px 20px;
    border-radius: 4px;
}

.result-content {
    text-align: center;
}

.result-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.result-image {
    width: 600px;
    max-width: 100%;
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
}

    .result-image img {
        width: 100%;
        height: auto;
    }

.result-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 20px;
}

.result-score {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #28a745;
}

.related-tests {
    margin-top: 40px;
}

    .related-tests h4 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

.related-test-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 15px;
}

.related-test-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .related-test-link:hover .related-test-card {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.related-test-card .row {
    min-height: 100px;
}

.related-test-card .col-4 img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.related-test-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 600;
}

.related-test-button {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 10px;
}

@media (min-width: 992px) {
    .related-tests .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.recommended-tests-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

    .recommended-tests-card .card-header {
        background-color: #f8f9fa;
        padding: 15px 20px;
        border-bottom: 1px solid #e9ecef;
    }

.recommended-test-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.recommended-test-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

    .recommended-test-item:hover {
        background-color: #f8f9fa;
    }

.recommended-test-content {
    padding: 8px 12px;
}

    .recommended-test-content h6 {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0;
    }

.personality-option.option-selected {
    background: #d4edda;
    border-color: #28a745;
}

    .personality-option.option-selected .option-radio-dot {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        background: #28a745;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .personality-option.option-selected:hover {
        background: #d4edda;
        border-color: #28a745;
    }

.quiz-option.option-correct .option-radio-dot {
    background: #28a745;
}

.quiz-option.option-incorrect .option-radio-dot {
    background: #dc3545;
}

/* ===== BREADCRUMB ===== */
.test-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
}
.test-breadcrumb .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}
.test-breadcrumb .breadcrumb-item a:hover {
    color: #212529;
}
.test-breadcrumb .breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.test-breadcrumb .dropdown-toggle::after {
    font-size: 0.6rem;
    vertical-align: middle;
}
.test-breadcrumb .dropdown-menu {
    min-width: 200px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.test-breadcrumb .dropdown-item {
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 4px;
}
.test-breadcrumb .dropdown-item.active {
    background-color: #e8f4fd;
    color: #0d6efd;
}

/* ===== TEST HEADER ===== */
.test-header-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}
.test-main-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
    margin-bottom: 8px;
}
.test-main-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== RESULT STATES ===== */
.result-loading {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}
.result-loading p {
    margin-top: 10px;
    font-size: 1rem;
}
.result-error {
    background: #f8d7da;
    border-left: 5px solid #dc3545;
    padding: 15px 20px;
    border-radius: 4px;
    color: #721c24;
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}
.comments-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #212529;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f5;
}
.comments-section h4 i {
    color: #0d6efd;
}

/* Comment Items */
.comment-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid #f1f3f5;
    transition: all 0.2s ease;
}
.comment-item:hover {
    background: #f1f3f5;
    border-color: #dee2e6;
}
.comment-header {
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}
.comment-header strong {
    color: #212529;
    font-size: 0.95rem;
}
.comment-header small {
    font-size: 0.78rem;
}
.comment-text {
    margin: 0;
    color: #495057;
    font-size: 0.92rem;
    line-height: 1.55;
    word-break: break-word;
}

/* Add Comment Form */
.add-comment-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f1f3f5;
}
.add-comment-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}
.add-comment-section .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
}
.add-comment-section .form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.add-comment-section .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}
.add-comment-section textarea.form-control {
    resize: vertical;
    min-height: 100px;
}
.add-comment-section small {
    display: block;
    text-align: right;
    margin-top: 4px;
}
.add-comment-section .btn-primary {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.92rem;
}
#commentNotification {
    border-radius: 8px;
}

@media (max-width: 768px) {
    .comments-section {
        padding: 20px 16px;
        margin-top: 25px;
    }
    .comment-item {
        padding: 14px 16px;
    }
    .test-main-title {
        font-size: 1.4rem;
    }
    .test-breadcrumb .breadcrumb-item.active {
        max-width: 150px;
    }
}
