body {
    font-family: Arial, sans-serif;
    background:#f4f6f9;
    margin:0;
}

.container {
    display:flex;
    min-height:100vh;
}

.question {
    width:70%;
    padding:20px;
}

.sidebar {
    width:30%;
    background:#ecf0f1;
    padding:10px;
    box-shadow:-2px 0 5px rgba(0,0,0,0.1);
}

.card {
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.option {
    margin:12px 8px;
    padding:5px;
}

.option input[type="radio"] {
    margin-right:8px;
    cursor:pointer;
}

.option label {
    cursor:pointer;
}

.btn {
    padding:10px 20px;
    margin:5px;
    border:none;
    border-radius:5px;
    cursor:pointer;
    font-size:14px;
    transition:all 0.3s;
}

.btn:hover {
    transform:translateY(-2px);
    box-shadow:0 2px 5px rgba(0,0,0,0.2);
}

.next {
    background:#3498db;
    color:white;
}

.next:hover {
    background:#2980b9;
}

.submit {
    background:#27ae60;
    color:white;
    float:right;
}

.submit:hover {
    background:#229954;
}

/* Set Navigation Buttons */

.set-nav {
    margin-top:20px;
    padding-top:15px;
    border-top:2px solid #ddd;
    text-align:center;
}

.set-btn {
    background:#95a5a6;
    color:white;
    padding:8px 15px;
    margin:5px;
    border-radius:5px;
    text-decoration:none;
    display:inline-block;
    font-size:14px;
    transition:all 0.3s;
}

.set-btn:hover {
    background:#7f8c8d;
    transform:translateY(-2px);
}

.set-btn.active {
    background:#3498db;
    font-weight:bold;
}

/* Question Grid Buttons */

.answered {
    background:#27ae60;
    color:white;
    border:none;
    cursor:pointer;
}

.not_answered {
    background:#e67e22;
    color:white;
    border:none;
    cursor:pointer;
}

.not_visited {
    background:#7f8c8d;
    color:white;
    border:none;
    cursor:pointer;
}

.qgrid button {
    width:45px;
    height:45px;
    margin:5px;
    border-radius:50%;
    font-weight:bold;
    border:none;
    cursor:pointer;
    transition:all 0.2s;
}

.qgrid button:hover {
    transform:scale(1.05);
    box-shadow:0 2px 5px rgba(0,0,0,0.2);
}

.legend {
    padding:5px 10px;
    margin:3px;
    display:inline-block;
    border-radius:5px;
    font-size:12px;
}

.status-container {
    background:white;
    padding:15px;
    border-radius:8px;
    margin-bottom:20px;
    text-align:center;
    box-shadow:0 1px 3px rgba(0,0,0,0.1);
}

.status-item {
    display:inline-block;
    margin:5px 10px;
    padding:8px 12px;
    border-radius:5px;
    font-size:13px;
    font-weight:bold;
}

.status-count {
    font-size:18px;
    font-weight:bold;
    margin-left:8px;
}

.status-answered {
    background:#27ae60;
    color:white;
}

.status-not-answered {
    background:#e67e22;
    color:white;
}

.status-not-visited {
    background:#7f8c8d;
    color:white;
}

.sidebar h4 {
    text-align:center;
    color:#2c3e50;
    margin-bottom:15px;
}

.qgrid {
    text-align:center;
    max-height:400px;
    overflow-y:auto;
    padding:10px;
}

.current-question {
    border:3px solid #3498db !important;
    transform:scale(1.1);
}

/* RESULT PAGE */

.scorecard {
    width:420px;
    margin:80px auto;
    padding:40px 30px;
    background:linear-gradient(135deg, #ffffff, #f9fbfd);
    border-radius:15px;
    text-align:center;
    position:relative;
    border:6px solid #236ab1;
    box-shadow:0 15px 40px rgba(0,0,0,0.25);
}

.scorecard::before {
    content:"Certificate of Score";
    position:absolute;
    top:-18px;
    left:50%;
    transform:translateX(-50%);
    background:#0370dd;
    color:white;
    padding:6px 18px;
    font-size:14px;
    border-radius:20px;
    letter-spacing:1px;
}

.scorecard .datetime {
    font-size:14px;
    color:#ff0000;
    letter-spacing:0.5px;
}

.scorecard h2 {
    font-size:26px;
    margin-bottom:20px;
    color:#2c3e50;
    text-transform:uppercase;
    letter-spacing:1px;
}

.scorecard p {
    font-size:16px;
    margin:8px 0;
    color:#34495e;
}

.scorecard p:last-of-type {
    font-size:20px;
    font-weight:bold;
    color:#27ae60;
}

.progress {
    background:repeating-linear-gradient(
        45deg,
        #e0e0e0,
        #e0e0e0 10px,
        #d0d0d0 10px,
        #d0d0d0 20px
    );
    height:30px;
    width:100%;
    overflow:hidden;
    border-radius:5px;
}

.progress-bar {
    height:30px;
    background:#5cb85c;
    color:white;
    text-align:center;
    line-height:30px;
    font-weight:bold;
}

.scorecard::after {
    content:"Certified by TestJunction";
    position:absolute;
    bottom:10px;
    right:20px;
    font-size:12px;
    color:#7f8c8d;
    font-style:italic;
}

#answerSection {
    margin:30px auto;
    width:80%;
    background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

#answerSection h3 {
    color:#2c3e50;
    border-bottom:2px solid #3498db;
    padding-bottom:10px;
    margin-bottom:20px;
}

.answer-item {
    margin-bottom:15px;
    padding:10px;
    border-bottom:1px solid #ccc;
}

.answer-item strong {
    color:#2c3e50;
}

.option-correct {
    background:#d4edda;
    padding:5px;
    border-radius:3px;
    margin:2px 0;
}

.option-wrong {
    background:#f8d7da;
    padding:5px;
    border-radius:3px;
    margin:2px 0;
}

.option-selected-correct {
    background:#28a745;
    color:white;
    padding:5px;
    border-radius:3px;
    margin:2px 0;
}

.answer-info {
    font-size:12px;
    color:#7f8c8d;
    margin-top:5px;
}

/* MOBILE RESPONSIVE */

@media(max-width:768px) {

    .container {
        flex-direction:column;
    }

    .question,
    .sidebar {
        width:100%;
    }

    .scorecard {
        width:90%;
    }

    .qgrid button {
        width:40px;
        height:40px;
    }
}