/* ====================================
   CEMARA ASSISTED TEST - CUSTOM STYLES
   Color Palette:
   - Biru: #004aad
   - Putih: #ffffff
   - Abu-abu cerah: #d9d9d9
   - Abu-abu gelap: #4b4b4b
   ==================================== */

/* Custom Font Import */
@font-face {
    font-family: 'Helvetica Neue Bold';
    src: url('fontHelveticaNeueBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue Medium';
    src: url('HelveticaNeueMedium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #4b4b4b;
    overflow-x: hidden;
}

/* ====================================
   HOMEPAGE - LOGIN PAGE STYLES
   ==================================== */

.login-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Left Panel - Brand Section */
.brand-panel {
    background: linear-gradient(135deg, #004aad 0%, #0066dd 100%);
    border-radius: 30px;
    padding: 80px 60px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 20px 60px rgba(0, 74, 173, 0.3);
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.brand-title {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 52px;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.brand-logo-container {
    position: relative;
    z-index: 1;
}

.brand-logo {
    width: 140px;
    height: 140px;
    display: block;
}

/* Right Panel - Login Form Section */
.login-panel {
    background: #ffffff;
    padding: 80px 100px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-text {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 56px;
    color: #004aad;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.welcome-subtext {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 20px;
    color: #004aad;
    margin-bottom: 50px;
}

/* Form Styles */
.login-form {
    width: 100%;
    max-width: 500px;
}

.form-group {
    margin-bottom: 25px;
}

.form-input {
    width: 100%;
    padding: 20px 25px;
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 16px;
    border: none;
    background-color: #d9d9d9;
    border-radius: 15px;
    color: #4b4b4b;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    background-color: #e6e6e6;
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

.form-input::placeholder {
    color: #999999;
    opacity: 1;
}

.login-button {
    width: auto;
    padding: 18px 80px;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 18px;
    color: #ffffff;
    background-color: #004aad;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 8px 20px rgba(0, 74, 173, 0.3);
}

.login-button:hover {
    background-color: #0066dd;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 74, 173, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .login-panel {
        padding: 60px 70px;
    }
    
    .welcome-text {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .brand-panel {
        width: 100%;
        max-width: 500px;
        min-height: auto;
        padding: 50px 40px;
        margin-bottom: 30px;
    }
    
    .brand-title {
        font-size: 38px;
    }
    
    .login-panel {
        width: 100%;
        max-width: 500px;
        padding: 50px 40px;
    }
    
    .welcome-text {
        font-size: 40px;
    }
}

@media (max-width: 576px) {
    .brand-panel {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .brand-title {
        font-size: 32px;
    }
    
    .brand-logo-container {
        /* No changes needed */
    }
    
    .brand-logo {
        width: 120px;
        height: 120px;
    }
    
    .login-panel {
        padding: 40px 30px;
    }
    
    .welcome-text {
        font-size: 32px;
    }
    
    .welcome-subtext {
        font-size: 16px;
    }
    
    .form-input {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .login-button {
        width: 100%;
        padding: 16px 40px;
    }
}

/* ====================================
   ADMIN LOGIN SPECIFIC STYLES
   ==================================== */

.brand-subtitle-admin {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 22px;
    color: #ffffff;
    margin-top: 25px;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 2px solid #ffffff;
    padding-top: 15px;
    position: relative;
    z-index: 1;
}

.login-error {
    background-color: #ff3333;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-footer-link {
    margin-top: 30px;
    text-align: center;
}

.back-link {
    color: #004aad;
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 8px;
}

.back-link:hover {
    color: #0066dd;
    background-color: rgba(0, 74, 173, 0.05);
    transform: translateX(-3px);
}

/* ====================================
   RESULT PAGE - REKAPITULASI NILAI
   ==================================== */

/* Result Header */
.result-header {
    background-color: #004aad;
    padding: 15px 0;
}

.result-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-logo {
    width: 60px;
    height: 60px;
}

.result-brand-text {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 18px;
    color: #ffffff;
    line-height: 1.3;
}

/* Result Main Content */
.result-main {
    background-color: #f5f5f5;
    min-height: calc(100vh - 135px);
    height: calc(100vh - 135px);
    display: flex;
    align-items: center;
    padding: 30px 20px 60px 20px;
    overflow: hidden;
}

.result-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.result-title {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 42px;
    color: #004aad;
    text-align: center;
    margin-bottom: 8px;
}

.result-subtitle {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 32px;
    color: #004aad;
    text-align: center;
    margin-bottom: 35px;
}

/* Result Info Box */
.result-info-box {
    background-color: #d9d9d9;
    border-radius: 20px;
    padding: 35px 45px;
    margin-bottom: 30px;
}

.result-info-row {
    display: grid;
    grid-template-columns: 180px 30px 1fr;
    gap: 20px;
    padding: 12px 0;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 22px;
    color: #4b4b4b;
}

.result-info-row.highlight {
    border-top: 2px solid #4b4b4b;
    margin-top: 8px;
    padding-top: 20px;
    font-size: 26px;
}

.result-label {
    font-weight: bold;
}

.result-separator {
    text-align: center;
}

.result-value {
    color: #4b4b4b;
}

/* Finish Button */
.result-finish-btn {
    display: block;
    margin: 0 auto;
    background-color: #004aad;
    color: #ffffff;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 24px;
    padding: 16px 80px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-finish-btn:hover {
    background-color: #0066dd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 74, 173, 0.3);
}

/* Responsive Design for Result Page */
@media (max-width: 768px) {
    .result-header {
        padding: 12px 0;
    }
    
    .result-logo {
        width: 50px;
        height: 50px;
    }
    
    .result-brand-text {
        font-size: 16px;
    }
    
    .result-main {
        min-height: calc(100vh - 74px);
        height: calc(100vh - 74px);
        padding: 20px 15px;
    }
    
    .result-title {
        font-size: 32px;
        margin-bottom: 6px;
    }
    
    .result-subtitle {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .result-info-box {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    .result-info-row {
        grid-template-columns: 120px 20px 1fr;
        gap: 10px;
        font-size: 18px;
        padding: 10px 0;
    }
    
    .result-info-row.highlight {
        font-size: 20px;
        padding-top: 18px;
    }
    
    .result-finish-btn {
        font-size: 20px;
        padding: 14px 60px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .result-main {
        padding: 15px;
    }
    
    .result-title {
        font-size: 28px;
        margin-bottom: 5px;
    }
    
    .result-subtitle {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .result-info-box {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .result-info-row {
        grid-template-columns: 100px 15px 1fr;
        font-size: 16px;
        padding: 8px 0;
    }
    
    .result-info-row.highlight {
        font-size: 18px;
        padding-top: 15px;
    }
    
    .result-finish-btn {
        font-size: 18px;
        padding: 12px 50px;
    }
}

@media (max-height: 700px) {
    /* Extra optimization for short screens */
    .result-title {
        font-size: 36px;
        margin-bottom: 5px;
    }
    
    .result-subtitle {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .result-info-box {
        padding: 30px 40px;
        margin-bottom: 25px;
    }
    
    .result-info-row {
        padding: 10px 0;
        font-size: 20px;
    }
    
    .result-info-row.highlight {
        font-size: 24px;
        padding-top: 18px;
    }
    
    .result-finish-btn {
        font-size: 22px;
        padding: 14px 70px;
    }
}

/* ====================================
   FOOTER - TEST & RESULT PAGES
   ==================================== */

.test-footer {
    background-color: #004aad;
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.test-footer p {
    margin: 0;
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .test-footer {
        padding: 12px 0;
    }
    
    .test-footer p {
        font-size: 12px;
    }
}

/* ====================================
   TEST PAGE STYLES
   ==================================== */

/* Test Header */
.test-header {
    background-color: #004aad;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.test-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.test-logo {
    width: 50px;
    height: 50px;
}

.test-brand-text {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.3;
}

.test-timer {
    flex: 1;
    display: flex;
    justify-content: center;
}

.timer-display {
    background-color: #d9d9d9;
    padding: 10px 30px;
    border-radius: 10px;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 28px;
    color: #4b4b4b;
}

.timer-separator {
    margin: 0 5px;
}

.sidebar-toggle {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Test Main Container */
.test-main {
    background-color: #f5f5f5;
    min-height: calc(100vh - 180px);
    padding: 30px 20px 100px;
}

.test-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Question Section (Left) */
.question-section {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
}

.section-title {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 24px;
    color: #004aad;
    margin-bottom: 20px;
}

.question-content {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 16px;
    color: #4b4b4b;
    line-height: 1.6;
}

.question-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

/* Hide radio buttons and labels in question content */
.question-content input[type="radio"],
.question-content label {
    display: none;
}

/* Answer Section (Right) */
.answer-section {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    background-color: #4b4b4b;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    background-color: #5a5a5a;
    transform: translateX(5px);
}

.answer-option.selected {
    background-color: #004aad;
}

.option-letter {
    background-color: #ffffff;
    color: #4b4b4b;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 20px;
    flex-shrink: 0;
}

.answer-option.selected .option-letter {
    background-color: #ffffff;
    color: #004aad;
}

.option-text {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 16px;
    color: #ffffff;
    flex: 1;
}

/* Test Navigation */
.test-navigation {
    max-width: 1400px;
    margin: 30px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-btn {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 18px;
    padding: 15px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn, .next-btn {
    background-color: #004aad;
    color: #ffffff;
}

.prev-btn:hover, .next-btn:hover {
    background-color: #0066dd;
    transform: translateY(-2px);
}

.submit-btn {
    background-color: #ff3333;
    color: #ffffff;
    margin-left: auto;
}

.submit-btn:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

/* Question Sidebar */
.question-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    height: 100vh;
    width: 400px;
    background-color: #004aad;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 200;
    overflow-y: auto;
}

.question-sidebar.open {
    right: 0;
}

.sidebar-content {
    padding: 30px;
}

.sidebar-title {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 8px;
}

.sidebar-subtitle {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 30px;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.question-number {
    background-color: #d9d9d9;
    color: #4b4b4b;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-number:hover {
    transform: scale(1.05);
}

.question-number.answered {
    background-color: #7ed321;
    color: #ffffff;
}

.question-number.skipped {
    background-color: #ff3333;
    color: #ffffff;
}

.question-number.current {
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Question Legend */
.question-legend {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
}

.question-legend h4 {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 14px;
    color: #ffffff;
}

.legend-box {
    width: 30px;
    height: 30px;
    border-radius: 5px;
}

.legend-box.answered {
    background-color: #7ed321;
}

.legend-box.unanswered {
    background-color: #d9d9d9;
}

.legend-box.skipped {
    background-color: #ff3333;
}

/* Submit Overlay Modal */
.submit-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow: auto;
}

.submit-overlay.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.submit-modal {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.modal-title {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 28px;
    color: #004aad;
    text-align: center;
    margin-bottom: 30px;
}

.answer-summary {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #d9d9d9;
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 16px;
    color: #4b4b4b;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-count {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 20px;
    padding: 5px 15px;
    border-radius: 8px;
    color: #ffffff;
}

.summary-item:nth-child(1) .summary-count {
    background-color: #7ed321;
}

.summary-item:nth-child(2) .summary-count {
    background-color: #4b4b4b;
}

.summary-item:nth-child(3) .summary-count {
    background-color: #ff3333;
}

.modal-warning {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 16px;
    color: #4b4b4b;
    text-align: center;
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 18px;
    padding: 15px 50px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn {
    background-color: #004aad;
    color: #ffffff;
}

.confirm-btn:hover {
    background-color: #0066dd;
}

.cancel-btn {
    background-color: #ff3333;
    color: #ffffff;
}

.cancel-btn:hover {
    background-color: #cc0000;
}

/* Responsive Design for Test Page */
@media (max-width: 1200px) {
    .test-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .question-sidebar {
        width: 350px;
        right: -350px;
    }
}

@media (max-width: 768px) {
    .test-header-content {
        padding: 0 15px;
    }
    
    .test-brand-text {
        font-size: 14px;
    }
    
    .test-logo {
        width: 40px;
        height: 40px;
    }
    
    .timer-display {
        font-size: 20px;
        padding: 8px 20px;
    }
    
    .sidebar-toggle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .test-main {
        padding: 20px 15px 80px;
    }
    
    .question-section,
    .answer-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .answer-option {
        padding: 15px;
    }
    
    .option-letter {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .test-navigation {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .submit-btn {
        margin-left: 0;
    }
    
    .question-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .question-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .question-number {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .submit-modal {
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

/* ====================================
   LANDING PAGE - POST LOGIN STYLES
   ==================================== */

/* Landing Header */
.landing-header {
    background-color: #004aad;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 60px;
    height: 60px;
}

.header-brand-text {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 18px;
    color: #ffffff;
    line-height: 1.3;
}

/* Landing Main Content */
.landing-main {
    height: calc(100vh - 180px);
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    padding: 0 20px;
    overflow: hidden;
}

.landing-content {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* Test Title Section */
.test-title-section {
    margin-bottom: 35px;
    text-align: left;
}

.test-main-title {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 48px;
    color: #004aad;
    margin-bottom: 10px;
    line-height: 1.2;
}

.test-subtitle {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 20px;
    color: #004aad;
    margin: 0;
}

/* Participant Info Box */
.participant-info-box {
    background-color: #d9d9d9;
    border-radius: 20px;
    padding: 35px 50px;
    margin-bottom: 35px;
}

.info-row {
    display: grid;
    grid-template-columns: 150px 30px 1fr;
    gap: 15px;
    margin-bottom: 18px;
    align-items: start;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 18px;
    color: #4b4b4b;
}

.info-separator {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 18px;
    color: #4b4b4b;
    text-align: center;
}

.info-value {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 18px;
    color: #4b4b4b;
    word-wrap: break-word;
}

/* Start Test Button */
.start-test-section {
    margin-top: 35px;
}

.btn-start-test {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 20px;
    color: #ffffff;
    background-color: #004aad;
    border: none;
    border-radius: 15px;
    padding: 18px 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 74, 173, 0.3);
}

.btn-start-test:hover {
    background-color: #0066dd;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 74, 173, 0.4);
}

.btn-start-test:active {
    transform: translateY(0);
}

/* Landing Footer */
.landing-footer {
    background-color: #004aad;
    padding: 20px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-text {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 16px;
    color: #ffffff;
    margin: 0;
}

/* Responsive Design for Landing Page */
@media (max-width: 992px) {
    .test-main-title {
        font-size: 40px;
    }
    
    .test-subtitle {
        font-size: 18px;
    }
    
    .participant-info-box {
        padding: 30px 40px;
    }
    
    .info-row {
        grid-template-columns: 120px 20px 1fr;
        gap: 10px;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .landing-main {
        height: auto;
        min-height: calc(100vh - 180px);
        padding: 30px 20px;
    }
    
    .test-title-section {
        margin-bottom: 25px;
    }
    
    .test-main-title {
        font-size: 32px;
    }
    
    .test-subtitle {
        font-size: 16px;
    }
    
    .participant-info-box {
        padding: 25px 25px;
        border-radius: 15px;
        margin-bottom: 25px;
    }
    
    .info-row {
        grid-template-columns: 100px 15px 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .info-label,
    .info-separator,
    .info-value {
        font-size: 16px;
    }
    
    .start-test-section {
        margin-top: 25px;
    }
    
    .btn-start-test {
        width: 100%;
        padding: 16px 40px;
        font-size: 18px;
    }
    
    .header-logo {
        width: 50px;
        height: 50px;
    }
    
    .header-brand-text {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .test-main-title {
        font-size: 26px;
    }
    
    .test-subtitle {
        font-size: 14px;
    }
    
    .participant-info-box {
        padding: 20px 20px;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-bottom: 12px;
    }
    
    .info-separator {
        display: none;
    }
    
    .info-label {
        font-weight: bold;
        margin-bottom: 3px;
    }
}

/* ====================================
   LEGACY STYLES (untuk halaman lain)
   ==================================== */

/* Header Styles */
.header {
    background-color: #004aad;
    padding: 20px 0;
}

.headtext {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 30px;
    text-align: center;
    color: #ffffff;
    padding: 15px 0;
}

.logo {
    padding: 10px;
}

/* Footer Styles */
.footer {
    background-color: #004aad;
    padding: 20px 0;
    margin-top: 50px;
    color: #ffffff;
}

.footertext {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 16px;
    text-align: center;
    padding: 10px 0;
}

/* Dashboard Styles */
.dashboard {
    color: #004aad;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 24px;
    margin-top: 30px;
}

.dashboard a {
    color: #004aad;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dashboard a:hover {
    color: #0066dd;
}

.dashboardcon {
    margin-top: 20px;
}

/* Table Styles */
.table {
    color: #4b4b4b;
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 16px;
}

.table th {
    background-color: #004aad;
    color: #ffffff;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
}

/* Question Styles */
.question {
    color: #4b4b4b;
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
}

.ques {
    margin-top: 30px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Test Navigation */
.test {
    background-color: #004aad;
    font-weight: bold;
    font-size: 20px;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.test a {
    color: #ffffff;
    text-decoration: none;
}

/* Links */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:link, a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #0066dd;
}

a:active {
    text-decoration: none;
}

/* Utility Classes */
.rapi {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-weight: bold;
    font-size: 48px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#re {
    font-size: 18px;
    font-weight: bold;
    color: #004aad;
}

tr {
    color: #4b4b4b;
}

strong {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    color: #4b4b4b;
}

/* ====================================
   ADMIN DASHBOARD STYLES
   ==================================== */

/* Dashboard Body */
.dashboard-body {
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* Admin Sidebar */
.admin-sidebar {
    width: 450px;
    background: linear-gradient(180deg, #003d8f 0%, #004aad 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 50px 40px 30px;
    text-align: center;
}

.sidebar-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 32px;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 40px 0;
}

.nav-item {
    display: block;
    padding: 22px 50px;
    margin: 15px 0;
    color: #ffffff;
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 20px;
    text-decoration: none;
    background-color: rgba(211, 211, 211, 0.3);
    border-radius: 0;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(211, 211, 211, 0.5);
    transform: translateX(5px);
}

.nav-item.active {
    background-color: rgba(211, 211, 211, 0.6);
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 30px 40px 40px;
}

.logout-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #ffffff;
    color: #004aad;
}

/* Main Content Area */
.admin-main {
    margin-left: 450px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar */
.admin-topbar {
    background-color: #d9d9d9;
    padding: 35px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 48px;
    color: #004aad;
    margin: 0;
    letter-spacing: 1px;
}

/* Content Area */
.admin-content {
    flex: 1;
    padding: 60px;
    background-color: #d9d9d9;
}

/* Table Card */
.table-card {
    background-color: #d9d9d9;
    border-radius: 20px;
    overflow: hidden;
}

.table-card-header {
    background-color: #4b4b4b;
    color: #ffffff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.table-icon {
    font-size: 28px;
}

.table-title {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 24px;
    margin: 0;
    letter-spacing: 1px;
}

.table-actions {
    display: flex;
    gap: 15px;
}

.btn-add {
    background-color: #d9d9d9;
    color: #4b4b4b;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

.icon-plus {
    font-size: 20px;
    font-weight: bold;
}

.btn-settings {
    background-color: #d9d9d9;
    color: #4b4b4b;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-settings:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

/* Table Wrapper */
.table-wrapper {
    background-color: #d9d9d9;
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

.admin-table thead {
    background-color: #d9d9d9;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-table th {
    padding: 18px 20px;
    text-align: left;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 16px;
    color: #4b4b4b;
    border-bottom: 2px solid #4b4b4b;
}

.admin-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
    background-color: #f9f9f9;
}

.admin-table td {
    padding: 18px 20px;
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 15px;
    color: #4b4b4b;
}

/* Table Pagination */
.table-pagination {
    background-color: #d9d9d9;
    padding: 25px 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #ffffff;
    color: #4b4b4b;
    border-radius: 50%;
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background-color: #4b4b4b;
    color: #ffffff;
}

.page-btn.active {
    background-color: #4b4b4b;
    color: #ffffff;
}

.page-btn.prev,
.page-btn.next {
    font-size: 20px;
}

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background-color: #4b4b4b;
    color: #ffffff;
    padding: 25px 40px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 28px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 50px;
}

.btn-primary {
    width: auto;
    padding: 18px 80px;
    background-color: #004aad;
    color: #ffffff;
    border: none;
    border-radius: 15px;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-primary:hover {
    background-color: #0066dd;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 74, 173, 0.3);
}

/* Admin Footer */
.admin-footer {
    background-color: #d9d9d9;
    padding: 20px;
    text-align: center;
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 14px;
    color: #4b4b4b;
}

.admin-footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .admin-sidebar {
        width: 350px;
    }
    
    .admin-main {
        margin-left: 350px;
    }
    
    .page-title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .admin-sidebar {
        width: 280px;
    }
    
    .admin-main {
        margin-left: 280px;
    }
    
    .admin-content {
        padding: 30px;
    }
    
    .modal-body {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-topbar {
        padding: 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .table-card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* ====================================
   CLASS MANAGEMENT SPECIFIC STYLES
   ==================================== */

/* Detail Button in Table */
.btn-detail {
    background-color: #004aad;
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-detail:hover {
    background-color: #0066dd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
}

.btn-detail::after {
    content: '›';
    font-size: 18px;
}

/* Large Modal for Detail View */
.modal-large {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content-large {
    background-color: #ffffff;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Detail Modal Header */
.modal-header-detail {
    background-color: #4b4b4b;
    color: #ffffff;
    padding: 25px 40px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-detail h2 {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 32px;
    margin: 0 0 5px 0;
    color: #4b4b4b;
}

.modal-title-detail p {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 20px;
    margin: 0;
    color: #666666;
}

.modal-actions-detail {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Import/Export Buttons */
.btn-import {
    background-color: #90c750;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-import:hover {
    background-color: #7ab640;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(144, 199, 80, 0.4);
}

.btn-export {
    background-color: #ff4444;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-export:hover {
    background-color: #dd3333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 68, 68, 0.4);
}

.modal-close-detail {
    background-color: #004aad;
    border: none;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close-detail:hover {
    background-color: #0066dd;
    transform: rotate(90deg);
}

/* Detail Modal Body */
.modal-body-detail {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.detail-table-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
}

/* Detail Table Styles */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

.detail-table thead {
    background-color: #004aad;
    position: sticky;
    top: 0;
    z-index: 10;
}

.detail-table th {
    padding: 18px 20px;
    text-align: left;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 16px;
    color: #ffffff;
    border: 1px solid #0066dd;
}

.detail-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.detail-table tbody tr:hover {
    background-color: #f9f9f9;
}

.detail-table td {
    padding: 16px 20px;
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 15px;
    color: #4b4b4b;
    border: 1px solid #e0e0e0;
}

/* Responsive for Detail Modal */
@media (max-width: 992px) {
    .modal-content-large {
        width: 98%;
        max-height: 95vh;
    }
    
    .modal-header-detail {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding: 20px 25px;
    }
    
    .modal-actions-detail {
        width: 100%;
        justify-content: space-between;
    }
    
    .detail-table-wrapper {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .modal-title-detail h2 {
        font-size: 24px;
    }
    
    .modal-title-detail p {
        font-size: 16px;
    }
    
    .btn-import,
    .btn-export {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .modal-close-detail {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .detail-table {
        font-size: 14px;
    }
    
    .detail-table th,
    .detail-table td {
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .detail-table-wrapper {
        overflow-x: auto;
    }
    
    .detail-table {
        min-width: 600px;
    }
    
    .btn-import,
    .btn-export {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ====================================
   TEST MANAGEMENT SPECIFIC STYLES
   ==================================== */

/* Questions Controls */
.questions-controls {
    padding: 20px 40px;
    background-color: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
}

.btn-add-question {
    background-color: #004aad;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-question:hover {
    background-color: #0066dd;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 74, 173, 0.4);
}

/* Add Question Form */
.add-question-form {
    padding: 30px 40px;
    background-color: #f9f9f9;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
}

.add-question-form h3 {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 24px;
    color: #4b4b4b;
    margin: 0 0 25px 0;
}

.add-question-form .form-group {
    margin-bottom: 20px;
}

.add-question-form label {
    display: block;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 14px;
    color: #4b4b4b;
    margin-bottom: 8px;
}

.add-question-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-secondary {
    background-color: #d9d9d9;
    color: #4b4b4b;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #c0c0c0;
    transform: translateY(-2px);
}

/* Questions Table */
.questions-table {
    font-size: 14px;
}

.questions-table th {
    font-size: 14px;
    padding: 15px 12px;
}

.questions-table td {
    padding: 12px;
    font-size: 13px;
}

.questions-table td:nth-child(2) {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.questions-table td:nth-child(3),
.questions-table td:nth-child(4),
.questions-table td:nth-child(5),
.questions-table td:nth-child(6) {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Delete Button */
.btn-delete-small {
    background-color: transparent;
    border: none;
    color: #ff4444;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-delete-small:hover {
    background-color: #ff4444;
    color: #ffffff;
    transform: scale(1.2);
}

/* Form Input Adjustments for Test Management */
.form-input[type="number"] {
    -moz-appearance: textfield;
}

.form-input[type="number"]::-webkit-inner-spin-button,
.form-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Responsive for Test Management */
@media (max-width: 992px) {
    .questions-controls {
        padding: 15px 20px;
    }
    
    .add-question-form {
        padding: 20px 25px;
    }
    
    .questions-table {
        font-size: 13px;
    }
    
    .questions-table th,
    .questions-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .btn-add-question,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .questions-table td:nth-child(2),
    .questions-table td:nth-child(3),
    .questions-table td:nth-child(4),
    .questions-table td:nth-child(5),
    .questions-table td:nth-child(6) {
        max-width: 100px;
    }
}

@media (max-width: 576px) {
    .questions-table {
        min-width: 800px;
    }
    
    .questions-controls,
    .add-question-form {
        padding: 15px;
    }
}

/* Loading State */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e0e0e0;
    border-top-color: #004aad;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====================================
   TEST RESULT SPECIFIC STYLES
   ==================================== */

/* Results Table */
.results-table {
    font-size: 15px;
}

.results-table th {
    font-size: 15px;
    padding: 18px 20px;
    text-align: center;
}

.results-table td {
    padding: 16px 20px;
    font-size: 14px;
}

.results-table td:nth-child(1),
.results-table td:nth-child(3),
.results-table td:nth-child(4),
.results-table td:nth-child(5) {
    text-align: center;
}

.results-table td:nth-child(5) {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 16px;
    color: #004aad;
}

/* Score Highlights */
.results-table tbody tr:hover {
    background-color: #f0f8ff;
}

.results-table tbody tr td:nth-child(5) strong {
    color: #004aad;
    font-size: 18px;
}

/* Empty State */
.results-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999999;
}

.results-empty h3 {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.results-empty p {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 16px;
}

/* Statistics Summary (if needed in future) */
.results-summary {
    background-color: #f5f5f5;
    padding: 20px 40px;
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    gap: 30px;
}

.summary-item {
    flex: 1;
    text-align: center;
}

.summary-item .label {
    font-family: 'Helvetica Neue Medium', Arial, sans-serif;
    font-size: 14px;
    color: #666666;
    margin-bottom: 8px;
}

.summary-item .value {
    font-family: 'Helvetica Neue Bold', Arial, sans-serif;
    font-size: 28px;
    color: #004aad;
}

/* Responsive for Results */
@media (max-width: 992px) {
    .results-table {
        font-size: 14px;
    }
    
    .results-table th,
    .results-table td {
        padding: 12px 15px;
    }
    
    .results-summary {
        flex-direction: column;
        gap: 20px;
        padding: 20px 25px;
    }
}

@media (max-width: 768px) {
    .results-table {
        font-size: 13px;
        min-width: 600px;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px 12px;
    }
    
    .results-empty h3 {
        font-size: 20px;
    }
    
    .results-empty p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .detail-table-wrapper {
        overflow-x: auto;
    }
}