



#header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    background-color: #2d1b3d;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

h1{
    font-family: 'Inter', sans-serif;
    font-size: 5rem;
    font-weight: 1000;
    line-height: 1.2;             
    letter-spacing: -0.02em;        
    margin-bottom: 1.5rem;  
}

h5{
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 100;             
    letter-spacing: -0.02em;        
}

#navbar li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 0px 50px;
}



.logo{
  display: block;
  margin-left: 40px;
  max-width: 15%;
  height: auto;
}


.rounded-btn {
  background-color:white;
  color: black;
  padding: 10px 30px;
  font-size: 16px;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  border-radius: 8px; 
}

#hero {
    background-image: url(Images/hero.png);
    width: 100%;
    min-height: 625px;

    padding: 0 20px;

    background-color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow: 0 5px 15px rgba(0,0,0,0.06);

    overflow: hidden;
}

body-my-box{
    margin: 0;
    display: flex;   
    justify-content: center;
    align-items: center;   
    
}
.my-box {
    border: 2px solid #000000; 
    padding: 10px;             
    color: #ffffff;
    background-color:#433950; 
    width: fit-content;       
    border-radius: 20px;    
    display: flex;           
    justify-content: center;   
    align-items: center;  
    margin-top: 50px;
    
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}


footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    background-color: #2d1b3d;

    width: 100%;
    box-sizing: border-box;

    padding: 40px 6%;
    gap: 100px;

    color: white;
}

footer .col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    color: #ffffff;

    margin-bottom: 2px;
}

footer .col:first-child {
    width: 45%;
}

footer .col:last-child {
    width: 45%;
}


.app{
    background-color: white;
    width: 90%;
    max-width: 600px;
    margin: 100px auto 0;
    border-radius: 10px;
    padding: 30px;
}

.app h1{
    font-weight: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.quiz{
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: max-content;
}

.quiz.h2{
    font-weight: 400;
    display: flex;
    justify-content: center;
    align-items: center   
}

.btn{
    background-color:#d9dddc;
    color: #222;
    font-weight: 500;
    width: 100%;
    border: 1px solid #222;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover{
    background: grey;
    color: white;
}

.submit-btn{
    color: #222;
    font-weight: 500;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display:block;
}

#answer-buttons .selected {
    background: #dbeafe;
}

#answer-buttons .correct {
    background: #86efac;
}

#answer-buttons .wrong {
    background: #fca5a5;
}

#justification {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #f5f5f5;
    line-height: 1.6;
    font-size: 15px;
}

#quiz-summary {
    margin-top: 30px;
    text-align: left;
}

.test-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

#test-timer,
#question-counter {
    min-width: 90px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #111827;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

#test-timer {
    font-variant-numeric: tabular-nums;
}

#test-timer.timer-warning {
    background: #fee2e2;
    color: #991b1b;
}

#question-counter {
    margin-left: auto;
    border: none;
    cursor: pointer;
}

#stop-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #dc2626;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

#stop-btn:hover {
    background: #b91c1c;
}

.summary-question {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 10px;
    background: #f5f5f5;
}

.summary-question h3 {
    margin-bottom: 15px;
}

.summary-correct {
    color: green;
    font-weight: bold;
}

.summary-wrong {
    color: red;
    font-weight: bold;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

#difficulty {
    font-size: 14px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

#difficulty.easy {
    background: #d1fae5;
    color: #065f46;
}

#difficulty.medium {
    background: yellow;
    color: #92400e;
}

#difficulty.hard {
    background: orange;
    color: #991b1b;
}

.free-practice-btn {
    display: inline-block;
    background-color: greenyellow;
    font-size: 18px;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: black;
}


/* =========================
   REGISTER PAGE
========================= */

.register-page {
    min-height: 600px;
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
}

.register-page h2 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    margin-bottom: 30px;
    color: #222;
}

.register-container {

    width: 90%;
    max-width: 650px;

    margin: 0 auto;

    padding: 40px;

    border: 1px solid #e5e5e5;

    border-radius: 5px;

    box-sizing: border-box;

}

#register-form {

    display: flex;

    flex-direction: column;

    gap: 18px;

}

.name-row {

    display: flex;

    gap: 20px;

}

.name-row input {

    width: 50%;

}


#register-form input,
#register-form select {

    box-sizing: border-box;

    width: 100%;

    padding: 16px;

    font-size: 16px;

    border: 1px solid #ddd;

    border-radius: 12px;

    outline: none;

}

#register-form input:focus,
#register-form select:focus {

    border-color: #ff7420;

}

.signup-button {

    width: 150px;

    margin: 20px auto 0;

    padding: 14px 20px;

    border: none;

    border-radius: 10px;

    background-color: #ff7420;

    color: white;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

}


.signup-button:hover {

    background-color: #e96312;

}

.login-text {

    margin-top: 25px;

    font-size: 16px;

}

.login-text a {

    color: #ff7420;

    text-decoration: none;

    font-weight: bold;

}

#register-message {

    margin-top: 10px;

    font-weight: bold;

}

@media (max-width: 600px) {

    .name-row {

        flex-direction: column;

        gap: 18px;

    }

    .name-row input {

        width: 100%;

    }

    .register-container {

        padding: 25px;

    }

}

/* =========================
   REGISTER PAGE ENDS
========================= */

/* =========================================
   LOGIN PAGE
========================================= */

.auth-page {
    min-height: 70vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 50px 20px;

    background-color: #f5f5f5;
}


.auth-box {

    background-color: white;

    width: 100%;

    max-width: 450px;

    padding: 40px;

    border-radius: 12px;

    box-shadow:
        0 5px 20px rgba(0,0,0,0.10);

    text-align: center;
}


.auth-box h1 {

    font-size: 32px;

    margin-bottom: 10px;

}


.auth-box h2 {

    font-size: 24px;

    margin-bottom: 10px;

}


.auth-box p {

    color: #555;

    line-height: 1.5;

}


.auth-box label {

    display: block;

    text-align: left;

    margin-top: 25px;

    margin-bottom: 8px;

    font-weight: bold;

}


.auth-box input {

    width: 100%;

    box-sizing: border-box;

    padding: 12px;

    border: 1px solid #ccc;

    border-radius: 6px;

    font-size: 16px;

    margin-bottom: 15px;
}


.auth-box .free-practice-btn {

    width: 100%;

    margin-top: 10px;
}


#login-message,
#login-otp-message {

    margin-top: 15px;

    font-weight: 500;

}

/* =========================================
   LOGIN PAGE ENDS
========================================= */


/* ========================================
   REGISTER -> USER DROPDOWN
======================================== */

.auth-container {
    position: relative;
    display: inline-block;
}


/* Register / User name button */

.rounded-btn {
    padding: 10px 25px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: white;
    color: #222;
    cursor: pointer;
    font-size: 16px;
}


/* Dropdown */

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);

    min-width: 150px;

    background-color: white;

    border-radius: 8px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15);

    overflow: hidden;

    z-index: 1000;
}


/* Show dropdown */

.user-dropdown.show {
    display: block;
}


/* Dropdown links */

.user-dropdown a {
    display: block;

    padding: 12px 18px;

    text-decoration: none;

    color: #222;

    font-size: 15px;
}


/* Hover */

.user-dropdown a:hover {
    background-color: #f2f2f2;
}


/* ========================================
   REGISTER -> USER DROPDOWN ENDS
======================================== */





/* ========================================
   MOCK TEST PAGE
======================================== */

.mock-test-page {
    margin: 0;
    padding: 0;
}


/* ========================================
   QUIZ PAGE
======================================== */

.quiz-page {
    min-height: 650px;
    padding: 50px 20px;
    background: #f5f5f5;
}


/* ========================================
   QUIZ TITLE
======================================== */

.quiz-page .app {
    max-width: 1000px;
    margin: 0 auto;
}


.quiz-page .app > h1 {
    text-align: center;
    margin-bottom: 35px;
}


/* ========================================
   MAIN QUIZ RECTANGLE
======================================== */

.quiz {
    position: relative;
    background: white;

    border: 1px solid #dddddd;

    border-radius: 12px;

    padding: 35px 40px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    max-width: 900px;

    margin: 0 auto;
}

#questions-box {
    width: 100%;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fafafa;
}

.questions-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
}

#review-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #f59e0b;
    color: #222222;
    font-weight: bold;
    cursor: pointer;
}

#question-number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 8px;
}

.question-number-btn {
    min-height: 42px;
    border: 2px solid transparent;
    border-radius: 6px;
    color: #222222;
    font-weight: bold;
    cursor: pointer;
}

.question-number-btn.unanswered {
    background: #d1d5db;
}

.question-number-btn.answered {
    background: #86efac;
}

.question-number-btn.review {
    background: #f59e0b;
}

.question-number-btn.incorrect {
    background: #fecaca;
}

.question-number-btn.current {
    border-color: #6b2a8b;
}

.question-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    font-size: 13px;
}

.question-status-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.question-status-legend i {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.status-grey { background: #d1d5db; }
.status-green { background: #86efac; }
.status-orange { background: #f59e0b; }
.status-red { background: #fecaca; }

.quiz-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.quiz-modal-backdrop[hidden] {
    display: none;
}

.quiz-modal {
    width: min(460px, 100%);
    padding: 24px;
    border-radius: 12px;
    background: white;
}

#review-question-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.review-question-link {
    min-width: 40px;
    min-height: 40px;
    border: none;
    border-radius: 6px;
    background: #f59e0b;
    color: #222222;
    font-weight: bold;
    cursor: pointer;
}

.quiz-modal-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

#continue-test-btn,
#submit-test-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#continue-test-btn { background: #6b7280; }
#submit-test-btn { background: #dc2626; }


/* ========================================
   QUESTION HEADER
======================================== */

.question-header {
    position: relative;

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

    margin-bottom: 30px;

    padding-bottom: 20px;

    border-bottom: 1px solid #eeeeee;
}


/* Question text */

#question {
    margin: 0;

    font-size: 22px;

    line-height: 1.5;

    color: #222;

    flex: 1;
}


/* ========================================
   DIFFICULTY
======================================== */

#difficulty {
    display: inline-block;

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: bold;

    white-space: nowrap;
}


/* Easy */

#difficulty.easy {
    background: #e7f7e7;

    color: #218838;
}


/* Medium */

#difficulty.medium {
    background: #fff3cd;

    color: #856404;
}


/* Difficult */

#difficulty.difficult {
    background: #ffe5d0;

    color: #e8590c;
}


/* ========================================
   ANSWER OPTIONS
======================================== */

#answer-buttons {
    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-bottom: 25px;
}


/* Individual answer */

#answer-buttons .btn {
    width: 100%;

    padding: 15px 18px;

    text-align: left;

    border: 1px solid #d0d0d0;

    border-radius: 8px;

    background: #f8f8f8;

    cursor: pointer;

    font-size: 15px;

    transition: all 0.2s ease;
}


/* Hover */

#answer-buttons .btn:hover {
    background: #eeeeee;

    border-color: #999999;
}


/* Selected answer */

#answer-buttons .btn.selected {
    border: 2px solid #6b2a8b;

    background: #f4eafa;
}


/* Correct answer */

#answer-buttons .btn.correct {
    background: #dff5e1;

    border-color: #28a745;

    color: #155724;
}


/* Wrong answer */

#answer-buttons .btn.wrong {
    background: #f8d7da;

    border-color: #dc3545;

    color: #721c24;
}


/* ========================================
   SUBMIT / NEXT / RESTART BUTTONS
======================================== */

#submit-btn,
#next-btn,
#restart-btn {
    padding: 12px 28px;

    border: none;

    border-radius: 6px;

    background: #6b2a8b;

    color: white;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;
}


#submit-btn:hover,
#next-btn:hover,
#restart-btn:hover {
    opacity: 0.9;
}


/* ========================================
   JUSTIFICATION
======================================== */

#justification {
    display: none;

    margin-top: 20px;

    margin-bottom: 20px;

    padding: 18px;

    border-left: 4px solid #6b2a8b;

    background: #f7f2fa;

    border-radius: 6px;

    line-height: 1.6;
}


/* ========================================
   QUIZ SUMMARY
======================================== */

#quiz-summary {
    margin-top: 30px;
}


.summary-question {
    margin-bottom: 25px;

    padding: 20px;

    border: 1px solid #dddddd;

    border-radius: 8px;

    background: #fafafa;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    .quiz-page {
        padding: 30px 15px;
    }


    .quiz {
        padding: 25px 20px;
    }


    .question-header {
        flex-direction: column;
    }


    #question {
        font-size: 19px;
    }


    #difficulty {
        align-self: flex-start;
    }


    #answer-buttons .btn {
        font-size: 14px;

        padding: 13px;
    }

}


/* ==================================================
   QUIZ HEADER
================================================== */

.quiz-header {
    text-align: center;
    margin: 40px auto 30px;
}

.quiz-header h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #241433;
    letter-spacing: -1px;
}

.quiz-header p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    color: #666;
    margin: 0;
}



/* =========================================================================================================================
   MOCK TEST FILTER SECTION
   ========================================================================================================================= */

#mock-test-selection {
    background: #f7f7f7;
    padding: 70px 20px;
}


.mock-test-container {
    max-width: 1100px;
    margin: 0 auto;
}


.mock-test-container h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
}


.mock-test-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}


/* =========================================================
   FILTER GROUP
   ========================================================= */

.filter-group {
    background: white;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}


.filter-group h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}


/* =========================================================
   RADIO OPTIONS
   ========================================================= */

.radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}


.radio-option input {
    cursor: pointer;
}


/* =========================================================
   CHECKBOX OPTIONS
   ========================================================= */

.checkbox-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 25px;
}


.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}


.checkbox-option input {
    cursor: pointer;
}


/* Select All gets slightly more emphasis */

.select-all-option {
    font-weight: 700;
}


/* =========================================================
   SLIDER
   ========================================================= */

.slider-container {
    width: 100%;
}


.slider-container input[type="range"] {
    width: 100%;
    cursor: pointer;
}


.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #777;
    font-size: 14px;
}


/* =========================================================
   START BUTTON
   ========================================================= */

.mock-test-start {
    text-align: center;
    margin-top: 35px;
}


#start-mock-test {
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 14px 35px;
}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.mock-test-error {
    text-align: center;
    color: red;
    font-weight: bold;
    margin-top: 15px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .filter-group {
        padding: 20px;
    }

    .radio-options,
    .checkbox-options {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* =======================================================================================================================
   MOCK TEST FILTER SECTION
   ======================================================================================================================= */
