.main-menu {
    justify-content: flex-start;
    padding-top: 50px;
    flex: 1;
    overflow-y: auto;
    width: 100%;
}

.menu-title {
    color: var(--primary);
    margin-bottom: 30px;
}

.category-container {
    width: 100%;
    max-width: 600px;
}

.category-header {
    background: var(--header);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.category-header span {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--white);
    font-size: 1.1em;
}

.category-header.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary);
    margin-bottom: 0;
}

.category-header .chevron {
    transition: transform 0.3s;
    color: var(--primary);
}

.category-header.active .chevron {
    transform: rotate(180deg);
}

.quiz-list {
    list-style: none;
    padding: 15px;
    width: 100%;
    background: rgba(22, 27, 34, 0.5);
    border: 1px solid var(--border);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-bottom: 15px;
}

.quiz-list.collapsed {
    display: none;
}

/* New Layout for Quiz Items */
.quiz-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.quiz-info {
    flex: 2; /* Takes up 2/3 of space */
    pointer-events: none;
}

.quiz-stats {
    flex: 1; /* Takes up 1/3 of space */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

.quiz-item:active {
    transform: scale(0.98);
}

.quiz-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.quiz-item h2 {
    margin: 0 0 5px 0;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1em;
}

.quiz-item p {
    margin: 0;
    color: #8b949e;
    font-size: 0.85em;
    line-height: 1.3;
}

/* Badge Refinement */
.high-score-badge, .progress-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    width: fit-content;
    white-space: nowrap;
}

.high-score-badge {
    background: rgba(248, 81, 73, 0.1);
    color: var(--primary);
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.progress-badge {
    background: rgba(46, 160, 67, 0.1);
    color: var(--success);
    border: 1px solid rgba(46, 160, 67, 0.2);
}
