/* =========================================
   INDIAN LINGUA HINDI TEST - STYLESHEET
   ========================================= */

:root {
    --il-blue: #05386b;       /* Deep Navy */
    --il-green: #5cdb95;      /* Bright Mint */
    --il-green-dark: #379683; /* Darker Mint for hovers */
    --il-white: #ffffff;
    --il-light-gray: #f4f6f8;
    --il-border: #e2e8f0;
    --il-text-main: #2d3748;
    --il-text-muted: #718096;
}

/* --- WRAPPER & CARD --- */
.il-quiz-wrapper {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--il-text-main);
    line-height: 1.6;
    max-width: 750px;
    margin: 40px auto;
}

/* Hide Vue until loaded */
[v-cloak] { display: none; }

.il-quiz-card {
    background: var(--il-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(5, 56, 107, 0.1); /* Blue tinted shadow */
    padding: 40px;
    position: relative;
    overflow: hidden;
    border-top: 6px solid var(--il-blue);
    animation: ilFadeIn 0.5s ease-out;
}

@keyframes ilFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- TYPOGRAPHY --- */
.il-title {
    color: var(--il-blue);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.il-subtitle {
    color: var(--il-text-muted);
    font-size: 16px;
    margin-bottom: 30px;
}

.il-question-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--il-text-main);
    margin: 20px 0 30px 0;
}

/* --- PROGRESS BAR --- */
.il-progress-bar {
    height: 8px;
    background-color: var(--il-light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
}

.il-fill {
    height: 100%;
    background-color: var(--il-green);
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.il-counter {
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: var(--il-text-muted);
    margin-top: 5px;
}

/* --- CATEGORY TAG --- */
.il-category-tag {
    display: inline-block;
    background: #edf2f7;
    color: var(--il-blue);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- OPTION BUTTONS --- */
.il-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.il-option-btn {
    width: 100%;
    text-align: left;
    background: var(--il-white);
    border: 2px solid var(--il-border);
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 16px;
    color: var(--il-text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.il-option-btn:hover {
    border-color: var(--il-blue);
    background-color: #f0f5fa; /* Very light blue */
    transform: translateX(4px);
}

.il-option-btn:active {
    transform: scale(0.99);
}

/* --- INPUTS (For Capture Info Step) --- */
.il-input-group {
    margin-bottom: 20px;
}

.il-input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--il-border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    outline: none;
    box-sizing: border-box;
}

.il-input:focus {
    border-color: var(--il-green);
    box-shadow: 0 0 0 3px rgba(92, 219, 149, 0.2);
}

/* --- PRIMARY BUTTON (Start / Submit) --- */
.il-btn-start {
    background-color: var(--il-blue);
    color: var(--il-white);
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.il-btn-start:hover {
    background-color: #03254c; /* Darker Blue */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 56, 107, 0.2);
}

.il-btn-start:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.il-btn-outline {
    background: transparent;
    border: 2px solid var(--il-border);
    color: var(--il-text-muted);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.il-btn-outline:hover {
    border-color: var(--il-blue);
    color: var(--il-blue);
}

/* --- RESULTS SCREEN --- */
.text-center { text-align: center; }

.il-score-circle {
    width: 140px;
    height: 140px;
    background: var(--il-green);
    color: var(--il-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    margin: 0 auto 30px auto;
    box-shadow: 0 10px 20px rgba(92, 219, 149, 0.4);
    animation: ilPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ilPopIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.il-pass-msg {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #2f855a;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.il-fail-msg {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
    .il-quiz-card {
        padding: 25px;
        margin: 20px;
    }
    
    .il-question-text {
        font-size: 18px;
    }
    
    .il-option-btn {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .il-title {
        font-size: 24px;
    }
}

/* --- FEEDBACK STATES (Correct/Incorrect) --- */

/* CORRECT ANSWER: Green */
.il-option-btn.il-correct {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
    color: #155724 !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
}

/* WRONG SELECTION: Red */
.il-option-btn.il-wrong {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
    color: #721c24 !important;
    animation: ilShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

/* MUTED (Unselected options fade out slightly) */
.il-option-btn.il-muted {
    opacity: 0.6;
    border-color: #eee;
}

/* SHAKE ANIMATION FOR WRONG ANSWER */
@keyframes ilShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}


/* --- NEW HEADER LAYOUT --- */
.il-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.il-q-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--il-blue);
    background-color: #e6f0ff;
    padding: 6px 12px;
    border-radius: 20px;
}

/* --- OPTION BUTTON LAYOUT FOR ICONS --- */
.il-option-btn {
    display: flex; /* Use Flexbox to align text and icon */
    justify-content: space-between;
    align-items: center;
}

/* CORRECT ICON (Checkmark) */
.il-icon-right {
    font-size: 20px;
    color: #155724;
    font-weight: 900;
    margin-left: 10px;
    animation: ilPopIn 0.3s ease-out;
}

/* WRONG ICON (Cross) */
.il-icon-wrong {
    font-size: 20px;
    color: #721c24;
    font-weight: 900;
    margin-left: 10px;
    animation: ilPopIn 0.3s ease-out;
}

/* HIDE CATEGORY ON MOBILE TO SAVE SPACE */
@media (max-width: 450px) {
    .il-category-tag { display: none; }
}