:root {
    --color-dark-blue: #060d6b;
    --color-light-green-bg: #F0FFF0; /* Honeydew color from the image */
    --color-dark-text: #34495e;
    --color-green-accent: #27ae60;
    --color-red-accent: #e74c3c;
    --font-urdu: 'Jameel Noori Nastaleeq', sans-serif;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-light-green-bg);
}

#app-container {
    width: 100%;
    min-height: 100vh;
}

.screen {
    display: none;
    width: 100%;
}

.screen.active {
    display: block;
}

/* --- Login Screen Styles --- */
#login-screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #eaf2f8;
}

.login-box {
    width: 480px;
    background-color: skyblue;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    text-align: center;
}

.login-header {
    background-color: var(--color-dark-blue);
    color: white;
    padding: 15px;
}

.login-header h1 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.login-form-body {
    padding: 20px 30px 30px 30px;
}

.urdu-title {
    font-family: var(--font-urdu);
    font-size: 3.5rem;
    color: var(--color-dark-blue);
    margin: 10px 0 25px 0;
    line-height: 1.2;
}

.input-group {
    margin-bottom: 20px;
}

.urdu-label {
    display: block;
    font-family: var(--font-urdu);
    font-size: 1.8rem;
    color: var(--color-dark-text);
    margin-bottom: 8px;
}

.input-field {
    width: 75%;
    padding: 10px;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
}

.button-group {
    margin-top: 25px;
}

.start-button {
    background-color: var(--color-green-accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-button:hover {
    background-color: #2ecc71;
}


/* --- Quiz Screen Styles --- */
#quiz-screen.active {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.quiz-header {
    background-color: var(--color-dark-blue);
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Prevents header from shrinking */
}

.header-info div {
    margin: 3px 0;
}

#welcome-message {
    font-size: 1rem;
    font-weight: bold;
}

#chapter-title {
    font-size: 1.4rem;
    font-weight: bold;
    font-family: var(--font-urdu);
}

.view-record-button {
    background-color: var(--color-dark-text);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.quiz-body {
    background-color: var(--color-light-green-bg);
    flex-grow: 1; /* Allows this section to take up remaining space */
    display: flex;
    flex-direction: column;
    width: 100%;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
}

#score-label {
    color: var(--color-green-accent);
}

.question-container {
    text-align: center;
    padding: 30px 20px;
    flex-grow: 1; /* Centers content vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#question-eng {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 10px;
}

#question-urdu {
    font-family: var(--font-urdu);
    font-size: 2.8rem;
    color: var(--color-dark-text);
}

#options-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 0 40px 0; /* Added bottom padding */
}

.option-btn {
    background-color: var(--color-dark-text);
    color: white;
    border: none;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.option-btn:hover:not(:disabled) {
    background-color: #5d6d7e;
}

#feedback-label {
    margin: 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
    min-height: 30px;
    text-align: center;
}

.correct { background-color: var(--color-green-accent) !important; }
.wrong { background-color: var(--color-red-accent) !important; }

/* --- Modal Styles --- */
.modal {
    display: none; position: fixed; z-index: 100; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.5);
    justify-content: center; align-items: center;
}
.modal.active { display: flex; }
.modal-content {
    background-color: #f0f4f8; padding: 20px; border-radius: 10px;
    text-align: center; width: 400px; max-width: 90%; position: relative;
}
.modal-content h3 { font-size: 1.5rem; }
.modal-content p { font-size: 1.1rem; margin: 10px 0; }
.close-button {
    color: #aaa; position: absolute; top: 10px; right: 20px;
    font-size: 28px; font-weight: bold; cursor: pointer;
}