/* Entry Level question generator browse panel (step 3) */

#qg-left-panel-wrapper.qg-level-entry-level {
    min-width: 0;
}

#qg-entry-level-panel {
    width: 100%;
    min-width: 0;
}

.qg-el-layout {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
}

.qg-el-board-nav-wrap {
    flex: 0 0 148px;
    min-width: 148px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.55rem;
}

.qg-el-board-heading {
    margin: 0 0 0.55rem;
    padding: 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.qg-el-board-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qg-el-board-link {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.48rem 0.55rem;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
}

.qg-el-board-link:hover {
    background: #eef2f7;
}

.qg-el-board-link.active {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.qg-el-main {
    flex: 1 1 auto;
    min-width: 0;
}

.qg-el-header {
    margin-bottom: 0.65rem;
}

.qg-el-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    font-family: 'Roboto', sans-serif;
}

.qg-el-search-row {
    margin-bottom: 0.55rem;
}

.qg-el-search {
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
}

.qg-el-unit-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.qg-el-unit-tabs--edexcel {
    flex-wrap: nowrap;
    width: 100%;
}

.qg-el-unit-tabs--edexcel .qg-el-unit-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.55rem 0.25rem;
    font-size: 0.8125rem;
}

.qg-el-unit-tab {
    padding: 0.45rem 0.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    color: #374151;
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.qg-el-unit-tab:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.qg-el-unit-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.qg-el-unit-heading {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    font-family: 'Roboto', sans-serif;
    line-height: 1.35;
}

.qg-el-search-unit-group {
    margin-bottom: 1rem;
}

.qg-el-search-unit-group:last-child {
    margin-bottom: 0;
}

.qg-el-search-unit-label {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e40af;
    font-family: 'Roboto', sans-serif;
    line-height: 1.35;
}

.qg-el-objectives-wrap {
    overflow: visible;
}

#qg-entry-level-panel .qg-grid-subtopic-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#qg-entry-level-panel .qg-grid-subsection-collapsible {
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#qg-entry-level-panel .qg-grid-subsection-collapsible.expanded {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#qg-entry-level-panel .qg-grid-subsection-header {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    min-height: 3rem;
    box-sizing: border-box;
}

#qg-entry-level-panel .qg-grid-subsection-collapsible.expanded .qg-grid-subsection-header {
    background-color: #f9fafb;
}

#qg-entry-level-panel .qg-grid-subsection-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

#qg-entry-level-panel .qg-grid-subsection-icon {
    font-size: 1.25rem;
    color: #4b5563;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

#qg-entry-level-panel .qg-grid-subsection-selected-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 0.25rem;
    background-color: #60a5fa;
}

#qg-entry-level-panel .qg-grid-subsection-content {
    display: none;
    padding: 0.5rem 1rem 0.75rem;
    background-color: #ffffff;
}

#qg-entry-level-panel .qg-grid-subsection-collapsible.expanded .qg-grid-subsection-content {
    display: block;
}

#qg-entry-level-panel .qg-el-objectives-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
}

#qg-entry-level-panel .qg-el-objectives-grid .dropdown-item-row {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    gap: 8px;
    cursor: pointer;
    min-height: 32px;
    box-sizing: border-box;
}

#qg-entry-level-panel .qg-el-objectives-grid .dropdown-item-row:hover {
    background: #f3f4f6;
}

#qg-entry-level-panel .qg-el-objectives-grid .dropdown-item-row.selected,
#qg-entry-level-panel .qg-el-objectives-grid .dropdown-item-row:has(.dropdown-checkbox:checked) {
    background: #eff6ff;
    border-radius: 6px;
}

#qg-entry-level-panel .qg-el-objectives-grid .dropdown-item {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    gap: 6px;
    cursor: pointer;
}

#qg-entry-level-panel .qg-el-objectives-grid .dropdown-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #3b82f6;
    margin: 0;
}

#qg-entry-level-panel .qg-el-objectives-grid .dropdown-item-name {
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
    font-weight: 400;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.qg-el-empty {
    color: #6b7280;
    padding: 0.75rem 0.2rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
}

@media (max-width: 900px) {
    .qg-el-layout {
        flex-direction: column;
    }

    .qg-el-main {
        order: 1;
    }

    .qg-el-board-nav-wrap {
        order: 2;
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }

    .qg-el-board-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .qg-el-board-link {
        width: auto;
    }

    .qg-el-unit-tabs--edexcel {
        flex-wrap: wrap;
        overflow-x: auto;
    }

    .qg-el-unit-tabs--edexcel .qg-el-unit-tab {
        flex: 0 0 auto;
        min-width: 2rem;
    }
}
