/**
 * JP Quiz MBTI - Frontend CSS
 * Version 2.1 - Pagination Style (5 questions per page)
 * Style giống 16personalities.com
 */

/* ============================================
   CONTAINER & LAYOUT
============================================ */

.jp-quiz-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.jp-quiz-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.jp-quiz-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.jp-quiz-description {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
}

.jp-quiz-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    font-size: 14px;
    color: #475569;
}

/* ============================================
   PROGRESS BAR
============================================ */

.jp-quiz-progress {
    margin: 30px 0;
}

/* ============================================
   LIKERT LEGEND - HORIZONTAL
============================================ */

/* Likert Legend - HIDDEN (not needed) */
.jp-likert-legend {
    display: none !important;
}

.jp-likert-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* First item (Hoàn toàn đồng ý) - Green background */
.jp-likert-legend-item:first-child {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.jp-likert-legend-item:first-child .jp-likert-circle {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

/* Middle item (Không rõ) - Gray background, SMALLER */
.jp-likert-legend-item:nth-child(2) {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid #9ca3af;
    padding: 10px 16px; /* Smaller padding */
}

.jp-likert-legend-item:nth-child(2) .jp-likert-circle {
    width: 32px;  /* SMALLER! */
    height: 32px;
    flex-shrink: 0;
}

.jp-likert-legend-item:nth-child(2) span {
    font-size: 13px; /* Slightly smaller text */
}

/* Last item (Hoàn toàn không đồng ý) - Purple background */
.jp-likert-legend-item:last-child {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border: 2px solid #8b5cf6;
}

.jp-likert-legend-item:last-child .jp-likert-circle {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.jp-likert-legend-item span {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .jp-likert-legend {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .jp-likert-legend-item {
        justify-content: flex-start;
    }
}

/* ============================================
   PROGRESS BAR (continued)
============================================ */

.jp-progress-bar-wrapper {
    background: #e5e7eb;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.jp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.jp-progress-text {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* ============================================
   LIKERT SCALE - 7 ĐIỂM
============================================ */

.jp-question {
    background: transparent; /* No background - clean & minimal */
    padding: 30px 20px;
    border-radius: 0;
    box-shadow: none; /* Remove shadow */
    margin-bottom: 35px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid #e5e7eb; /* Subtle divider */
}

.jp-question:last-child {
    border-bottom: none; /* Remove border from last question */
}

.jp-question.hidden {
    display: none !important;
}

.jp-question-title {
    font-size: 18px;
    font-weight: 500; /* Lighter weight */
    color: #334155; /* Slightly lighter */
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* Likert Scale Container */
.jp-likert-scale {
    margin-top: 20px;
}

.jp-likert-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.jp-likert-label-left {
    color: #10b981;
}

.jp-likert-label-right {
    color: #a78bfa;
}

/* Likert Options - 7 vòng tròn */
.jp-likert-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
}

.jp-likert-option {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;  /* For tooltip positioning */
}

.jp-likert-option input[type="radio"] {
    display: none;
}

/* ✅ HIDE TEXT LABELS - Only show on hover as tooltip */
.jp-likert-tooltip {
    display: none;  /* Hidden by default */
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 6px;
    pointer-events: none;
    z-index: 100;
}

/* Show tooltip on hover */
.jp-likert-option:hover .jp-likert-tooltip {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Tooltip arrow */
.jp-likert-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* Vòng tròn Likert - Outline only với kích thước tăng dần - LARGER for desktop */
.jp-likert-circle {
    width: 52px;  /* Increased from 48px */
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid #cbd5e1;
    position: relative;
    background: transparent !important; /* No background! */
}

/* Graduated sizes - smallest in center, largest at ends - LARGER */
/* Position 1 (far left) - Largest */
.jp-likert-option:nth-child(1) .jp-likert-circle {
    width: 52px;  /* Increased from 48px */
    height: 52px;
    border-color: #10b981;
}

/* Position 2 */
.jp-likert-option:nth-child(2) .jp-likert-circle {
    width: 46px;  /* Increased from 42px */
    height: 46px;
    border-color: #34d399;
}

/* Position 3 */
.jp-likert-option:nth-child(3) .jp-likert-circle {
    width: 40px;  /* Increased from 36px */
    height: 40px;
    border-color: #6ee7b7;
}

/* Position 4 (center/neutral) - Smallest */
.jp-likert-option:nth-child(4) .jp-likert-circle {
    width: 32px;  /* Increased from 28px */
    height: 32px;
    border-color: #9ca3af;
}

/* Position 5 */
.jp-likert-option:nth-child(5) .jp-likert-circle {
    width: 40px;  /* Increased from 36px */
    height: 40px;
    border-color: #c4b5fd;
}

/* Position 6 */
.jp-likert-option:nth-child(6) .jp-likert-circle {
    width: 46px;  /* Increased from 42px */
    height: 46px;
    border-color: #a78bfa;
}

/* Position 7 (far right) - Largest */
.jp-likert-option:nth-child(7) .jp-likert-circle {
    width: 52px;  /* Increased from 48px */
    height: 52px;
    border-color: #8b5cf6;
}

/* Hover effect - highlight border */
.jp-likert-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
    border-width: 4px;
}

/* Selected state - fill with solid color matching border */
.jp-likert-option input[type="radio"]:checked + .jp-likert-circle {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    border-width: 4px;
}

/* Fill selected circle with its border color */
.jp-likert-option:nth-child(1) input[type="radio"]:checked + .jp-likert-circle {
    background: #10b981 !important;
}
.jp-likert-option:nth-child(2) input[type="radio"]:checked + .jp-likert-circle {
    background: #34d399 !important;
}
.jp-likert-option:nth-child(3) input[type="radio"]:checked + .jp-likert-circle {
    background: #6ee7b7 !important;
}
.jp-likert-option:nth-child(4) input[type="radio"]:checked + .jp-likert-circle {
    background: #9ca3af !important;
}
.jp-likert-option:nth-child(5) input[type="radio"]:checked + .jp-likert-circle {
    background: #c4b5fd !important;
}
.jp-likert-option:nth-child(6) input[type="radio"]:checked + .jp-likert-circle {
    background: #a78bfa !important;
}
.jp-likert-option:nth-child(7) input[type="radio"]:checked + .jp-likert-circle {
    background: #8b5cf6 !important;
}

/* Checkmark on selected */
.jp-likert-option input[type="radio"]:checked + .jp-likert-circle::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    font-weight: 700;
}

/* Old gradient colors - not used in outline-only design
   Colors now handled by border-color in nth-child selectors above */

/* Đồng ý (Xanh lá) - Disabled
.jp-likert-agree-3 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.jp-likert-agree-2 {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.jp-likert-agree-1 {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
}
*/

/* Trung lập (Xám) - Disabled
.jp-likert-neutral {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
}
*/

/* Không đồng ý (Tím) - Disabled
.jp-likert-disagree-1 {
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
}

.jp-likert-disagree-2 {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

.jp-likert-disagree-3 {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
*/

/* ============================================
   NAVIGATION BUTTONS
============================================ */

.jp-quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    gap: 15px;
}

.jp-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.jp-btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.jp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.jp-btn-secondary {
    background: white;
    color: #64748b;
    border: 2px solid #e5e7eb;
}

.jp-btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* ============================================
   CODE VERIFICATION
============================================ */

.jp-quiz-verification {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.jp-verification-content h3 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 15px;
}

.jp-verification-instructions {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.jp-code-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.jp-code-input-group input {
    flex: 1;
    max-width: 300px;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.jp-code-input-group input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.jp-code-error {
    color: #dc2626;
    margin-top: 10px;
    font-weight: 500;
}

/* ============================================
   RESULTS
============================================ */

.jp-quiz-results {
    padding: 40px 20px;
    text-align: center;
}

.jp-result-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.jp-result-mbti-code {
    font-size: 72px;
    font-weight: 800;
    margin: 20px 0;
    letter-spacing: 4px;
}

.jp-result-name {
    font-size: 28px;
    font-weight: 600;
    margin: 15px 0;
}

.jp-result-group {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
}

.jp-result-description {
    font-size: 18px;
    line-height: 1.6;
    color: #475569;
    margin: 20px 0;
}

.jp-result-section {
    text-align: left;
    margin: 30px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.jp-result-section h3 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 12px;
}

.jp-result-section p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

/* Error message */
.jp-error-message {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #dc2626;
    font-weight: 500;
}

/* ============================================
   LOADING
============================================ */

.jp-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.jp-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: jp-spin 0.8s linear infinite;
}

@keyframes jp-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 768px) {
    .jp-quiz-container {
        padding: 15px;
    }
    
    .jp-quiz-title {
        font-size: 24px;
    }
    
    .jp-question {
        padding: 20px;
    }
    
    .jp-question-title {
        font-size: 18px;
    }
    
    /* Likert circles - graduated sizes on mobile */
    .jp-likert-option:nth-child(1) .jp-likert-circle {
        width: 40px;
        height: 40px;
    }
    .jp-likert-option:nth-child(2) .jp-likert-circle {
        width: 35px;
        height: 35px;
    }
    .jp-likert-option:nth-child(3) .jp-likert-circle {
        width: 30px;
        height: 30px;
    }
    .jp-likert-option:nth-child(4) .jp-likert-circle {
        width: 24px;
        height: 24px;
    }
    .jp-likert-option:nth-child(5) .jp-likert-circle {
        width: 30px;
        height: 30px;
    }
    .jp-likert-option:nth-child(6) .jp-likert-circle {
        width: 35px;
        height: 35px;
    }
    .jp-likert-option:nth-child(7) .jp-likert-circle {
        width: 40px;
        height: 40px;
    }
    
    .jp-likert-options {
        gap: 4px;
    }
    
    .jp-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .jp-result-mbti-code {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    /* Likert circles - smaller graduated sizes */
    .jp-likert-option:nth-child(1) .jp-likert-circle {
        width: 36px;
        height: 36px;
    }
    .jp-likert-option:nth-child(2) .jp-likert-circle {
        width: 32px;
        height: 32px;
    }
    .jp-likert-option:nth-child(3) .jp-likert-circle {
        width: 28px;
        height: 28px;
    }
    .jp-likert-option:nth-child(4) .jp-likert-circle {
        width: 22px;
        height: 22px;
    }
    .jp-likert-option:nth-child(5) .jp-likert-circle {
        width: 28px;
        height: 28px;
    }
    .jp-likert-option:nth-child(6) .jp-likert-circle {
        width: 32px;
        height: 32px;
    }
    .jp-likert-option:nth-child(7) .jp-likert-circle {
        width: 36px;
        height: 36px;
    }
    
    .jp-likert-option input[type="radio"]:checked + .jp-likert-circle::after {
        font-size: 16px;
    }
    
    .jp-quiz-navigation {
        flex-direction: column;
    }
    
    .jp-btn {
        width: 100%;
    }
}

/* ============================================
   PRINT STYLES
============================================ */

@media print {
    .jp-quiz-navigation,
    .jp-btn {
        display: none;
    }
}

/* ==============================================
   DETAILED RESULT DISPLAY - v2.2
   ============================================== */

/* Result Container */
.jp-result-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;  /* Left/right = 0 for maximum width */
}

/* Result Header */
.jp-result-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.jp-result-header h1 {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 15px 0;
    letter-spacing: 3px;
}

/* Result header - Personality name - HIGH SPECIFICITY to override other plugins */
.jp-quiz-results .jp-result-header h2,
.jp-result-container .jp-result-header h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    opacity: 1 !important;
}

/* Identity Badge */
.jp-result-identity {
    margin: 20px 0;
}

.identity-badge {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.identity-badge.assertive {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.identity-badge.turbulent {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Result Sections */
.jp-result-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
}

.jp-result-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1f2937;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.jp-result-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 15px;
}

.jp-result-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jp-result-section ul li {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    padding: 12px 0 12px 35px;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
}

.jp-result-section ul li:last-child {
    border-bottom: none;
}

.jp-result-section ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Strengths - Green checkmarks */
.jp-result-section.strengths ul li:before {
    background: #10b981;
}

/* Weaknesses - Orange checkmarks */
.jp-result-section.weaknesses ul li:before {
    background: #f59e0b;
}

/* Careers - Blue checkmarks */
.jp-result-section.careers ul li:before {
    background: #3b82f6;
}

/* Question Number Styling */
.jp-question-title strong {
    color: #667eea;
    font-weight: 700;
    margin-right: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .jp-result-header h1 {
        font-size: 42px;
        margin-bottom: 12px;
    }
    
    /* High specificity for mobile to override other plugins */
    .jp-quiz-results .jp-result-header h2,
    .jp-result-container .jp-result-header h2 {
        font-size: 22px !important;
        margin-bottom: 15px !important;
    }
    
    /* Compact spacing for mobile results */
    .jp-result-header {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .jp-result-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .jp-result-section h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .jp-result-section p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .jp-result-section ul {
        margin: 10px 0;
        padding-left: 20px;
    }
    
    .jp-result-section ul li {
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    /* Results heading compact */
    .jp-results-heading {
        padding: 20px 15px 10px;
        margin-bottom: 15px;
    }
    
    .jp-results-heading h2 {
        font-size: 36px;
    }
    
    /* Badge smaller on mobile */
    .jp-result-identity {
        margin: 12px 0;
    }
}

/* ============================================
   PERCENTAGE BARS (16personalities style)
   ============================================ */

.jp-percentages-section {
    background: #fff;
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.jp-percentage-bar {
    margin-bottom: 25px;
}

.jp-percentage-bar:last-child {
    margin-bottom: 0;
}

.jp-percentage-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.jp-bar-container {
    position: relative;
    width: 100%;
    height: 12px;
    background: #e8e8e8;
    border-radius: 6px;
    overflow: visible;
    margin: 8px 0;
}

.jp-bar-fill {
    position: relative;
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease-in-out;
}

.jp-bar-dot {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid currentColor;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.jp-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

.jp-bar-labels span {
    font-weight: 500;
}

/* Mobile responsive for percentage bars - COMPACT */
@media (max-width: 768px) {
    .jp-percentages-section {
        padding: 15px 12px;
        margin: 15px 0;
    }
    
    .jp-percentage-label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .jp-bar-labels {
        font-size: 11px;
    }
    
    .jp-percentage-bar {
        margin-bottom: 15px;
    }
    
    .jp-bar-container {
        height: 10px;
        margin: 6px 0;
    }
    
    .jp-bar-dot {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
}

/* ============================================
   RESULTS HEADING - Prominent & Visible
   ============================================ */

.jp-results-heading {
    text-align: center;
    padding: 40px 20px 20px;
    margin-bottom: 30px;
}

.jp-results-heading h2 {
    font-size: 48px;
    font-weight: 800;
    color: #10b981;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    /* Add gradient background */
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .jp-results-heading {
        padding: 30px 15px 15px;
    }
    
    .jp-results-heading h2 {
        font-size: 36px;
        letter-spacing: 1px;
    }
}
/**
 * ===================================
 * PROGRESS BAR & NAVIGATION STYLES
 * ===================================
 * 
 * THÊM VÀO FILE: frontend-pagination.css
 * Hoặc tạo file mới: progress-navigation.css
 */

/* ================================
   PROGRESS BAR WRAPPER
   ================================ */

.jp-quiz-progress-wrapper {
    margin: 30px 0 40px 0;
    padding: 0;
}

.jp-quiz-navigation-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

/* ================================
   PROGRESS INDICATOR (Bar + Text)
   ================================ */

.jp-progress-indicator {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Progress Bar Container */
.jp-progress-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

/* Progress Fill (Thanh xanh) */
.jp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 100px;
    transition: width 0.4s ease;
    position: relative;
}

/* Animated shine effect */
.jp-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Progress Text (Bước X/Y) */
.jp-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.jp-current-page {
    color: #3b82f6;
    font-weight: 700;
}

.jp-total-pages {
    color: #9ca3af;
}

/* ================================
   NAVIGATION BUTTONS
   ================================ */

/* Shared button styles */
.jp-btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Previous Button (Trang trước) */
.jp-btn-prev {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
}

.jp-btn-prev:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
    transform: translateX(-2px);
}

.jp-btn-prev:active {
    transform: translateX(-1px) scale(0.98);
}

/* Next Button (Tiếp theo) */
.jp-btn-next {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.jp-btn-next:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.jp-btn-next:active {
    transform: translateY(-1px) scale(0.98);
}

/* Submit Button (Hoàn thành) */
.jp-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.jp-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.jp-btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Disabled state */
.jp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ================================
   NAVIGATION BOTTOM (Button container)
   ================================ */

.jp-quiz-navigation-bottom {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f3f4f6;
}

/* ================================
   RESPONSIVE (Mobile)
   ================================ */

@media (max-width: 768px) {
    .jp-quiz-navigation-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .jp-progress-indicator {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .jp-progress-bar {
        width: 100%;
    }
    
    .jp-progress-text {
        text-align: center;
        width: 100%;
    }
    
    .jp-btn-prev {
        width: 100%;
        justify-content: center;
    }
    
    .jp-quiz-navigation-bottom {
        flex-direction: column;
    }
    
    .jp-btn-next,
    .jp-btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .jp-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .jp-progress-text {
        font-size: 13px;
    }
}

/* ================================
   HIDE OLD SUBMIT BUTTON
   ================================ */

/* Hide old submit button if exists */
.jp-quiz-submit {
    display: none !important;
}

/* ===================================
   HIGHLIGHT UNANSWERED QUESTION
   =================================== */

.highlight-unanswered {
    animation: pulseHighlight 1s ease-in-out 2;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: -20px;
}

@keyframes pulseHighlight {
    0%, 100% {
        background: rgba(239, 68, 68, 0.1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        background: rgba(239, 68, 68, 0.2);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

