@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root { --header-bg: #e7f4fd; --border: #dfe5ec; }

#rc-quiz-root {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #ffffff;
    padding: 20px;
    width: 80%;
    max-width: 80%;
    box-sizing: border-box;
}

.header, .paragraph-container, .container, .solution-container {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Top filter bar */
.header.combined-bar {
    background-color: var(--header-bg);
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.filter-bar .controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 40px;
    min-width: 115px;
    padding: 6px 34px 6px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #111;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%232F8DFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
    transition: border 0.15s ease;
}

.filter-select.wide { min-width: 350px; }
.filter-select:focus { outline: none; border-color: #c7dbff; }
.filter-select option { font-size: 14px; font-weight: 400; padding: 6px 8px; }

/* Timer */
.timer {
    width: 133px;
    height: 40px;
    border: 0.8px solid var(--border);
    border-radius: 10px;
    background: #FFF;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    cursor: pointer;
    box-sizing: border-box;
}

.timer svg { width: 28px; height: 28px; flex-shrink: 0; }

.timer .timer-display {
    color: #A7A7A7;
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: normal;
    width: 80px;
    text-align: center;
    margin-left: 6px;
}

/* Reset button — blue icon */
.reset-button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 0.8px solid var(--border);
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #629cff;
}

.reset-button:hover,
.reset-button:active,
.reset-button:focus {
    background-color: #FFF !important;
    color: #629cff !important;
    outline: none !important;
    box-shadow: none !important;
}

.reset-button svg {
    width: 22px;
    height: 22px;
    stroke: #629cff;
}

/* Question bar */
.header.question-bar {
    background-color: var(--header-bg);
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    box-sizing: border-box;
}

.title {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
}

.question-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.question-buttons button {
    background-color: white !important;
    color: black !important;
    border: 0.8px solid #C1C1C1;
    width: 40px;
    height: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.question-buttons button.active {
    background-color: #629cff !important;
    color: white !important;
    border-color: #629cff;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.solution-button {
    height: 40px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    background-color: white !important;
    color: black !important;
    border: 0.8px solid #C1C1C1;
    cursor: pointer;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.icon-button {
    background-color: white !important;
    border: 0.8px solid #C1C1C1 !important;
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
}

/* Passage */
.paragraph-container {
    background-color: white;
    padding: 15px 0;
    box-sizing: border-box;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 10px;
    width: 100%;
}

/* Question container */
.container {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
}

.question { font-weight: 600; margin-bottom: 15px; }

.options { display: flex; flex-direction: column; gap: 10px; }

.option {
    background-color: white;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    border: 0px solid #ccc;
    text-align: left;
    display: flex;
    align-items: center;
    min-height: auto;
    box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, 0.10);
    box-sizing: border-box;
}

.option-label {
    background-color: #4285F4;
    color: white;
    font-weight: normal;
    border-radius: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

/* Solution */
.solution-container {
    margin-top: 10px !important;
    padding: 10px !important;
    background: white !important;
    border-radius: 10px !important;
    border: 1px solid #ddd !important;
    display: none;
    box-sizing: border-box;
    width: 100%;
}

.yt-button {
    background-color: #3E85FF !important;
    color: white !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 4px 12px !important;
    height: 28px !important;
    min-width: 50px !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
    margin-right: 5px !important;
    margin-left: 5px !important;
}

.yt-button:hover { background-color: #336CCF !important; }
.solution-container b { font-size: 14px !important; }
.solution-container span { display: inline-block !important; min-width: 250px !important; font-size: 14px !important; }
.loading { text-align: center; padding: 20px; font-size: 18px; }