@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

.benquiz-container {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    position: relative;
}

@media (min-width: 769px) {
    .benquiz-container {
        padding: 2rem 3rem;
    }
}

@media (min-width: 1400px) {
    .benquiz-container {
        padding: 3rem 4rem;
    }
}

.benquiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.benquiz-clavius {
    font-size: 2rem;
    font-weight: 700;
    color: #FB651E;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

#benquiz-question-number {
    margin: 0;
    font-size: 1.5rem;
    color: #2d3749;
    font-weight: 500;
}

#benquiz-timer {
    font-size: 1.25rem;
    font-weight: 500;
    color: #718096;
    background-color: #edf2f7;
    padding: 8px 20px;
    border-radius: 20px;
}

.benquiz-content {
    display: flex;
    gap: 30px;
    padding: 0;
}

@media (max-width: 768px) {
    .benquiz-content {
        flex-direction: column;
        gap: 20px;
    }

    .benquiz-navigation,
    .benquiz-question-container {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
}

.benquiz-navigation {
    width: 40%;
    min-width: 300px;
    max-width: 400px;
}

@media (max-width: 768px) {
    .benquiz-navigation {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}

.benquiz-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    text-align: center;
    background-color: #e2e8f0;
    padding: 12px;
    border-radius: 8px;
}

.benquiz-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.benquiz-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4299e1 0%, #2b6cb0 100%);
    transition: width 0.3s ease;
}

.benquiz-nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    justify-content: flex-start;
    align-content: flex-start;
}

@media (max-width: 768px) {
    .benquiz-nav-grid {
        gap: 6px;
        padding: 8px;
    }
}

.benquiz-nav-box {
    width: 48px;
    height: 48px;
    background-color: #edf2f7;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: bold;
    color: #4a5568;
    font-size: 18px;
    flex-grow: 0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .benquiz-nav-box {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.benquiz-nav-box.active {
    background-color: #4299e1;
    color: white;
    border-color: #4299e1;
}

.benquiz-nav-box.answered {
    background-color: #48bb78;
    color: white;
    border-color: #48bb78;
}

.benquiz-nav-box.marked {
    border: 2px solid #f39c12;
    background-color: #fef5e7;
    color: #e67e22;
}

.benquiz-question-container {
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 80px;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
}

.benquiz-question-wrapper {
    max-width: 100%;
    box-sizing: border-box;
}

.benquiz-question-text {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #2d3748;
    line-height: 1.6;
    word-wrap: break-word;
}

.benquiz-question-image {
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

@media (max-width: 768px) {
    .benquiz-question-image {
        margin: 0.5rem auto;
    }
}

.benquiz-options {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.benquiz-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 12px 15px;
    background-color: #f7fafc;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.benquiz-option:hover {
    background-color: #edf2f7;
}

.benquiz-option.selected {
    background-color: #e6f0fa;
}

.benquiz-option.selected .option-circle {
    background: linear-gradient(90deg, #4299e1 0%, #2b6cb0 100%);
    color: white;
    transform: scale(1.05);
}

.option-circle {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    background-color: #e2e8f0;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 15px;
    font-weight: 600;
    font-size: 16px;
    color: #2d3748;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.benquiz-option:hover .option-circle {
    background-color: #d4d8df;
}

.benquiz-option.multiple-choice .option-circle {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 600;
    font-size: 16px;
    color: #2d3748;
    background-color: #e2e8f0;
}

.benquiz-option.multiple-choice.selected .option-circle {
    background: linear-gradient(90deg, #28a745 0%, #1f7a38 100%);
    color: white;
    transform: scale(1.05);
}

.benquiz-free-text {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    color: #4a5568;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.benquiz-free-text:focus {
    border-color: #4299e1;
    background-color: #fff;
}

.benquiz-multi-free-text {
    width: 100%;
    margin-bottom: 20px;
}

.benquiz-multi-free-text-item {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.benquiz-multi-free-text-item:hover {
    border-color: #cbd5e0;
}

.benquiz-multi-free-text-label {
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    color: #2d3748;
}

.benquiz-multi-free-text-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    color: #4a5568;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.benquiz-multi-free-text-input:focus {
    border-color: #4299e1;
    background-color: #fff;
}

.benquiz-matrix-options {
    display: grid;
    gap: 15px;
    background-color: #f7fafc;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.benquiz-matrix-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.benquiz-matrix-statement {
    flex: 2;
    font-weight: 500;
    color: #2d3748;
}

.benquiz-matrix-options select {
    flex: 1;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 16px;
    color: #4a5568;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.benquiz-matrix-options select:focus {
    border-color: #4299e1;
}

.benquiz-button-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.benquiz-button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
    width: 100%;
}

.benquiz-button-container .benquiz-button-group #benquiz-prev {
    margin-right: 0;
}

.benquiz-button-container .benquiz-button-group #benquiz-next {
    margin-left: 0;
}

.benquiz-button {
    padding: 12px 30px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.benquiz-button:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#benquiz-mark-review {
    background-color: #ecc94b;
}

#benquiz-mark-review:hover {
    background-color: #d69e2e;
}

#benquiz-prev {
    background-color: #a0aec0;
}

#benquiz-prev:hover {
    background-color: #718096;
}

#benquiz-next {
    background-color: #48bb78;
}

#benquiz-next:hover {
    background-color: #38a169;
}

#benquiz-submit {
    background-color: #48bb78;
}

#benquiz-submit:hover {
    background-color: #38a169;
}

.benquiz-results-container {
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: none;
}

.benquiz-results-header {
    background: linear-gradient(90deg, #4299e1 0%, #2b6cb0 100%);
    color: white;
    padding: 15px 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.benquiz-results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9fbfd 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: 'Roboto', sans-serif;
}

.benquiz-results-table th {
    padding: 12px 15px;
    text-align: center;
    background: linear-gradient(90deg, #4299e1 0%, #2b6cb0 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
}

.benquiz-results-table th:last-child {
    border-right: none;
}

.benquiz-results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-size: 0.95rem;
    color: #2d3748;
    transition: background-color 0.3s ease;
}

.benquiz-results-table td:last-child {
    border-right: none;
}

.benquiz-results-table th:nth-child(1),
.benquiz-results-table td:nth-child(1) {
    width: 60px;
    text-align: center;
}

.benquiz-results-table th:nth-child(2),
.benquiz-results-table td:nth-child(2) {
    text-align: left;
    min-width: 120px;
}

.benquiz-results-table th:nth-child(3),
.benquiz-results-table td:nth-child(3),
.benquiz-results-table th:nth-child(4),
.benquiz-results-table td:nth-child(4),
.benquiz-results-table th:nth-child(5),
.benquiz-results-table td:nth-child(5),
.benquiz-results-table th:nth-child(6),
.benquiz-results-table td:nth-child(6) {
    text-align: center;
    min-width: 120px;
}

.benquiz-results-table tr:hover td {
    background-color: #f7fafc;
}

.benquiz-results-table tr:last-child td {
    border-bottom: none;
}

.benquiz-explanation-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9fbfd 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: 'Roboto', sans-serif;
}

.benquiz-explanation-table th {
    padding: 12px 15px;
    text-align: center;
    background: linear-gradient(90deg, #4299e1 0%, #2b6cb0 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 0px solid #d1d5db;
    border-right: 0px solid #d1d5db;
}

.benquiz-explanation-table th:last-child {
    border-right: none;
}

.benquiz-explanation-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-size: 0.95rem;
    color: #2d3748;
    transition: background-color 0.3s ease;
}

.benquiz-explanation-table td:last-child {
    border-right: none;
}

.benquiz-explanation-table th:nth-child(1),
.benquiz-explanation-table td:nth-child(1) {
    width: 60px;
    text-align: center;
}

.benquiz-explanation-table th:nth-child(2),
.benquiz-explanation-table td:nth-child(2) {
    text-align: left;
    min-width: 120px;
}

.benquiz-explanation-table th:nth-child(3),
.benquiz-explanation-table td:nth-child(3),
.benquiz-explanation-table th:nth-child(4),
.benquiz-explanation-table td:nth-child(4),
.benquiz-explanation-table th:nth-child(5),
.benquiz-explanation-table td:nth-child(5),
.benquiz-explanation-table th:nth-child(6),
.benquiz-explanation-table td:nth-child(6) {
    text-align: center;
    min-width: 120px;
}

.benquiz-explanation-table tr:hover td {
    background-color: #f7fafc;
}

.benquiz-explanation-table tr:last-child td {
    border-bottom: none;
}

.correct-icon {
    color: #48bb78;
}

.correct-icon::before {
    content: '✅';
    margin-right: 5px;
}

.incorrect-icon {
    color: #e53e3e;
}

.incorrect-icon::before {
    content: '❌';
    margin-right: 5px;
}

.benquiz-question-left {
    max-width: 40%;
    word-wrap: break-word;
}

.benquiz-question-left img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.benquiz-back-button-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.benquiz-back-button {
    padding: 12px 30px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.benquiz-back-button:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.benquiz-explanation-button {
    padding: 8px 16px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.benquiz-explanation-button:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
}

.benquiz-leaderboard-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.benquiz-leaderboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benquiz-leaderboard-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
    -webkit-overflow-scrolling: touch;
}

.benquiz-leaderboard-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9fbfd 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
}

.benquiz-leaderboard-table th,
.benquiz-leaderboard-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    color: #4a5568;
    white-space: nowrap;
    min-width: 120px;
}

.benquiz-leaderboard-table th {
    background: linear-gradient(90deg, #4299e1 0%, #2b6cb0 100%);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benquiz-leaderboard-table tbody tr {
    transition: background-color 0.3s ease;
}

.benquiz-leaderboard-table tbody tr:hover {
    background-color: #f7fafc;
}

.benquiz-leaderboard-table tbody tr:last-child td {
    border-bottom: none;
}

.benquiz-leaderboard-table td {
    font-weight: 500;
}

@media (max-width: 768px) {
    .benquiz-leaderboard-wrap {
        padding: 1rem;
        max-width: 100%;
    }

    .benquiz-leaderboard-table th,
    .benquiz-leaderboard-table td {
        padding: 10px;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .benquiz-leaderboard-wrap {
        padding: 0.5rem;
        max-width: 100%;
    }

    .benquiz-leaderboard-table th,
    .benquiz-leaderboard-table td {
        padding: 8px;
        font-size: 0.875rem;
        min-width: 90px;
    }

    .benquiz-leaderboard-title {
        font-size: 1.25rem;
    }
}

.benquiz-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benquiz-popup {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.benquiz-popup .benquiz-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    aspect-ratio: 1/1;
    background-color: #e53e3e;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    padding: 0;
    margin: 0;
}

.benquiz-popup .benquiz-popup-close:hover {
    background-color: #f0f0f1;
    transform: scale(1.1);
}

.benquiz-popup .benquiz-popup-close::before,
.benquiz-popup .benquiz-popup-close::after {
    content: none;
}

@media (max-width: 768px) {
    .benquiz-results-table th,
    .benquiz-results-table td,
    .benquiz-explanation-table th,
    .benquiz-explanation-table td {
        padding: 10px;
        font-size: 0.9rem;
        min-width: 100px;
        border-bottom: 1px solid #e5e7eb;
        border-right: 1px solid #e5e7eb;
    }

    .benquiz-results-table th:last-child,
    .benquiz-results-table td:last-child,
    .benquiz-explanation-table th:last-child,
    .benquiz-explanation-table td:last-child {
        border-right: none;
    }

    .benquiz-results-table th:nth-child(1),
    .benquiz-results-table td:nth-child(1),
    .benquiz-explanation-table th:nth-child(1),
    .benquiz-explanation-table td:nth-child(1) {
        width: 50px;
        min-width: 50px;
        text-align: center;
    }

    .benquiz-results-table th:nth-child(2),
    .benquiz-results-table td:nth-child(2),
    .benquiz-explanation-table th:nth-child(2),
    .benquiz-explanation-table td:nth-child(2) {
        text-align: left;
        min-width: 100px;
    }

    .benquiz-results-table th:nth-child(3),
    .benquiz-results-table td:nth-child(3),
    .benquiz-results-table th:nth-child(4),
    .benquiz-results-table td:nth-child(4),
    .benquiz-results-table th:nth-child(5),
    .benquiz-results-table td:nth-child(5),
    .benquiz-results-table th:nth-child(6),
    .benquiz-results-table td:nth-child(6),
    .benquiz-explanation-table th:nth-child(3),
    .benquiz-explanation-table td:nth-child(3),
    .benquiz-explanation-table th:nth-child(4),
    .benquiz-explanation-table td:nth-child(4),
    .benquiz-explanation-table th:nth-child(5),
    .benquiz-explanation-table td:nth-child(5),
    .benquiz-explanation-table th:nth-child(6),
    .benquiz-explanation-table td:nth-child(6) {
        text-align: center;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .benquiz-results-table th,
    .benquiz-results-table td,
    .benquiz-explanation-table th,
    .benquiz-explanation-table td {
        padding: 8px;
        font-size: 0.85rem;
        min-width: 90px;
        border-bottom: 1px solid #e5e7eb;
        border-right: 1px solid #e5e7eb;
    }

    .benquiz-results-table th:last-child,
    .benquiz-results-table td:last-child,
    .benquiz-explanation-table th:last-child,
    .benquiz-explanation-table td:last-child {
        border-right: none;
    }

    .benquiz-results-table th:nth-child(1),
    .benquiz-results-table td:nth-child(1),
    .benquiz-explanation-table th:nth-child(1),
    .benquiz-explanation-table td:nth-child(1) {
        width: 40px;
        min-width: 40px;
        text-align: center;
    }

    .benquiz-results-table th:nth-child(2),
    .benquiz-results-table td:nth-child(2),
    .benquiz-explanation-table th:nth-child(2),
    .benquiz-explanation-table td:nth-child(2) {
        text-align: left;
        min-width: 90px;
    }

    .benquiz-results-table th:nth-child(3),
    .benquiz-results-table td:nth-child(3),
    .benquiz-results-table th:nth-child(4),
    .benquiz-results-table td:nth-child(4),
    .benquiz-results-table th:nth-child(5),
    .benquiz-results-table td:nth-child(5),
    .benquiz-results-table th:nth-child(6),
    .benquiz-results-table td:nth-child(6),
    .benquiz-explanation-table th:nth-child(3),
    .benquiz-explanation-table td:nth-child(3),
    .benquiz-explanation-table th:nth-child(4),
    .benquiz-explanation-table td:nth-child(4),
    .benquiz-explanation-table th:nth-child(5),
    .benquiz-explanation-table td:nth-child(5),
    .benquiz-explanation-table th:nth-child(6),
    .benquiz-explanation-table td:nth-child(6) {
        text-align: center;
        min-width: 90px;
    }
}

.benquiz-intro-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    max-width: 550px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.05);
}

.benquiz-intro-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benquiz-intro-icon {
    width: 2rem;
    text-align: center;
    font-size: 1.5rem;
    color: #4299e1;
}

.benquiz-intro-label {
    flex: 4;
    font-weight: 500;
    color: #2d3748;
}

.benquiz-intro-colon {
    width: 1rem;
    text-align: center;
    color: #718096;
}

.benquiz-intro-value {
    flex: 1;
    text-align: left;
    font-weight: 400;
    color: #4a5568;
}

@media (max-width: 768px) {
    .benquiz-intro-table {
        max-width: 100%;
        padding: 0.75rem;
    }

    .benquiz-intro-row {
        gap: 0.5rem;
    }

    .benquiz-intro-icon {
        width: 1.5rem;
        font-size: 1.25rem;
    }

    .benquiz-intro-label,
    .benquiz-intro-value {
        font-size: 0.9rem;
    }
}

.benquiz-history-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.benquiz-history-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.benquiz-history-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
    -webkit-overflow-scrolling: touch;
}

.benquiz-history-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9fbfd 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
}

.benquiz-history-table th,
.benquiz-history-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 0.1px solid #4a5568;
    font-size: 1rem;
    color: #4a5568;
    white-space: nowrap;
    min-width: 120px;
}

.benquiz-history-table th {
    background: linear-gradient(90deg, #4299e1 0%, #2b6cb0 100%);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benquiz-history-table tbody tr {
    transition: background-color 0.3s ease;
}

.benquiz-history-table tbody tr:hover {
    background-color: #f7fafc;
}

.benquiz-history-table tbody tr:last-child td {
    border-bottom: none;
}

.benquiz-history-table td {
    font-weight: 500;
}

@media (max-width: 768px) {
    .benquiz-history-wrap {
        padding: 1rem;
        max-width: 100%;
    }

    .benquiz-history-table th,
    .benquiz-history-table td {
        padding: 10px;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .benquiz-history-wrap {
        padding: 0.5rem;
        max-width: 100%;
    }

    .benquiz-history-table th,
    .benquiz-history-table td {
        padding: 8px;
        font-size: 0.875rem;
        min-width: 90px;
    }

    .benquiz-history-title {
        font-size: 1.25rem;
    }
}